diff options
Diffstat (limited to 'src/arch/i386/boot.c')
-rw-r--r-- | src/arch/i386/boot.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/arch/i386/boot.c b/src/arch/i386/boot.c new file mode 100644 index 0000000..b2b84f0 --- /dev/null +++ b/src/arch/i386/boot.c @@ -0,0 +1,16 @@ +#include <arch/i386/gdt.h> +#include <arch/i386/interrupts/idt.h> +#include <arch/i386/sysenter.h> +#include <arch/i386/tty.h> +#include <kernel/main.h> + +void kmain_early() { + tty_clear(); + tty_const("gdt..."); + gdt_init(); + tty_const("idt..."); + idt_init(); + tty_const("sysenter..."); + sysenter_setup(); + kmain(); +} |