Move to ring 3

This commit is contained in:
2024-08-06 12:10:03 +02:00
parent c5ab6aaef1
commit cf7a7303e3
11 changed files with 456 additions and 175 deletions

21
src/kernel/interrupts.c Normal file
View 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;
}