blob: 476bcdc55c378b3dadbdd6ef2b71345f7c7e2117 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include <acpi.h>
#include <memory.h>
#include <lib.h>
#include <serial.h>
#include <fb.h>
#include <shim.h>
#include <panic.h>
#include <pci.h>
void kmain(struct boot_info *info) {
memory_init(&info->map);
pci_init();
fb_init(1024, 768);
//acpi_init(info->acpi_table);
kprintf("enterd kmain\n");
*(char *)(0xB8000 + 0x144) = 'h';
*(char *)(0xB8000 + 0x146) = 'i';
while (1) {
__asm__("hlt;");
// loop so we dont halt
// this allows interrupts to fire
}
}
|