summaryrefslogtreecommitdiff
path: root/src/arch/i386/boot.c
blob: 37e1aff3eacdb90169d39981ab3c43cfec984e6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <arch/generic.h>
#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();
	log_const("gdt...");
	gdt_init();
	log_const("idt...");
	idt_init();
	log_const("sysenter...");
	sysenter_setup();
	kmain();
}