summaryrefslogtreecommitdiff
path: root/src/kmain.c
blob: 1175f146d23526fee8ee2d90e11959472a790f18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <fpu.h>
#include <acpi.h>
#include <memory.h>
#include <lib.h>
#include <serial.h>
#include <shim.h>
#include <panic.h>
#include <pci.h>
#include <screen.h>

void kmain(struct boot_info *info) {
	enable_fpu();
	memory_init(&info->map);
	pci_init();
	screen_init();
	acpi_init(info->acpi_table);

	kprintf("enterd kmain\n");

	char *test = kalloc(5);
	*test = 1;

	while (1) {
		screen_redraw();
		// loop so we dont halt
		// this allows interrupts to fire
	}
}