initial commit

This commit is contained in:
2026-06-09 23:16:25 -05:00
commit 20fd32f978
8 changed files with 439 additions and 0 deletions

26
kmain.c Normal file
View File

@@ -0,0 +1,26 @@
#include <stdint.h>
extern void halt();
typedef struct {
uint16_t offset_low;
uint16_t selector;
uint8_t zero;
uint8_t flags;
uint16_t offset_high;
} idt_entry_t __attribute__((packed));
typedef struct {
uint16_t limit;
uint32_t base;
} idt_ptr_t;
idt_entry_t idt[256];
idt_ptr_t idtr;
void load_idt() {}
void kmain() {
load_idt();
halt();
}