corn/src/kmain.c

23 lines
446 B
C

#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);
kprintf("enterd kmain\n");
*(char*)(0xB8000 + 0x144) = 'h';
*(char*)(0xB8000 + 0x146) = 'i';
while (1) {
//kprintf("ret: 0x%p\n", kalloc(2));
// loop so we dont halt
// this allows interrupts to fire
}
}