Move to ring 3
This commit is contained in:
21
src/kernel/interrupts.c
Normal file
21
src/kernel/interrupts.c
Normal file
@@ -0,0 +1,21 @@
|
||||
#include <stdint.h>
|
||||
#include "libc.h"
|
||||
|
||||
#ifdef __x86_64__
|
||||
typedef unsigned long long int uword_t;
|
||||
#else
|
||||
typedef unsigned int uword_t;
|
||||
#endif
|
||||
|
||||
struct __attribute__((packed)) interrupt_frame {
|
||||
uword_t ip;
|
||||
uword_t cs;
|
||||
uword_t flags;
|
||||
uword_t sp;
|
||||
uword_t ss;
|
||||
};
|
||||
|
||||
__attribute__((interrupt)) void interrupt_handler_1(struct interrupt_frame* frame)
|
||||
{
|
||||
(void)frame;
|
||||
}
|
||||
Reference in New Issue
Block a user