corn/src/kmain.c

22 lines
414 B
C
Raw Normal View History

2024-01-31 17:49:06 +00:00
#include <acpi.h>
2024-01-29 00:27:23 +00:00
#include <memory.h>
2024-01-27 08:37:48 +00:00
#include <lib.h>
#include <serial.h>
2024-01-27 10:16:57 +00:00
#include <fb.h>
2024-01-29 00:27:23 +00:00
#include <shim.h>
2024-01-29 00:27:23 +00:00
void kmain(struct boot_info *info) {
2024-01-31 17:49:06 +00:00
memory_init(&info->map);
2024-01-30 21:55:15 +00:00
//acpi_init(info->acpi_table);
//fb_init(1024, 768);
2024-01-30 21:46:38 +00:00
2024-01-30 02:10:29 +00:00
serial_out_str("entered kmain\n");
*(char*)(0xB8000 + 0x144) = 'h';
*(char*)(0xB8000 + 0x146) = 'i';
2024-01-30 21:55:15 +00:00
2024-01-30 00:19:29 +00:00
while (1) {
// loop so we dont halt
// this allows interrupts to fire
}
2024-01-27 03:29:49 +00:00
}