blob: 7501669d5ab02c684ccd8b80ca11e78f6cee2775 (
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
|
#include <acpi.h>
#include <memory.h>
#include <lib.h>
#include <serial.h>
#include <fb.h>
#include <shim.h>
#include <panic.h>
void kmain(struct boot_info *info) {
memory_init(&info->map);
//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
}
}
|