summaryrefslogtreecommitdiff
path: root/src/kmain.c
blob: d5bee56f1effbb9c39f74f2232ad4698ec901687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <memory.h>
#include <lib.h>
#include <serial.h>
#include <fb.h>
#include <shim.h>

void kmain(struct boot_info *info) {
	memory_init(info->map);
	serial_out_str("entered kmain\n");
	*(char*)(0xB8000 + 0x144) = 'h';
	*(char*)(0xB8000 + 0x146) = 'i';
	//fb_init(1024, 768);
	while (1) {
		// loop so we dont halt
		// this allows interrupts to fire
	}
}