mirror of
https://git.stationery.faith/corn/corn.git
synced 2025-04-11 09:37:26 +00:00
27 lines
463 B
C
27 lines
463 B
C
#include <backtrace.h>
|
|
#include <acpi.h>
|
|
#include <memory.h>
|
|
#include <lib.h>
|
|
#include <pci.h>
|
|
#include <screen.h>
|
|
|
|
void kmain(struct boot_info *info) {
|
|
memory_init(&info->map);
|
|
pci_init();
|
|
screen_init();
|
|
acpi_init(info->acpi_table);
|
|
|
|
kprintf("entered kmain\n");
|
|
|
|
//acpi_shutdown();
|
|
|
|
// pages are allocated on write :3
|
|
char *test = kalloc(5);
|
|
*test = 1;
|
|
|
|
while (1) {
|
|
screen_redraw();
|
|
// loop so we dont halt
|
|
// this allows interrupts to fire
|
|
}
|
|
}
|