summaryrefslogtreecommitdiff
path: root/kernel/main.c
blob: 55476ce6dcbfc5214c0757244b0dddd5b7df34a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "printf.h"
#include "gdt.h"
#include "idt.h"

void main() {
	printf("main()\n");
	
	gdt_init();
	printf("GDT set.\n");
	
	idt_init();
	printf("IDT set.\n");
	
	printf("Halting.\n");
	
	asm volatile(
		"cli\n"
		"hlt\n"
	);
	while(1);
}