summaryrefslogtreecommitdiff
path: root/src/kmain.c
blob: 54ed506e4e1cd7567420ad180652a5357ae37bbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <acpi.h>
#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);
	//acpi_init(info->acpi_table);
	//fb_init(1024, 768);

	serial_out_str("entered kmain\n");
	*(char*)(0xB8000 + 0x144) = 'h';
	*(char*)(0xB8000 + 0x146) = 'i';

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