Change _start to kmain

This commit is contained in:
Michael Shaw 2023-02-27 18:46:50 -05:00
commit 4410dde3f2
4 changed files with 17 additions and 5 deletions

View file

@ -6,7 +6,7 @@
#define IDT_GATE_SIZE 16
#define IDT_NUM_VECTORS 256
#define IDT_SIZE 32768
#define IDT_SIZE (IDT_GATE_SIZE * IDT_NUM_VECTORS)
#ifndef __ASM__
@ -27,6 +27,8 @@ struct idtr {
uint64_t offset;
};
void idt_init();
extern struct idtr __idtr;
extern struct irqdesc __idt[IDT_NUM_VECTORS];