diff options
author | Freya Murphy <freya@freyacat.org> | 2024-02-01 12:48:55 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-02-01 12:49:44 -0500 |
commit | 192a4ccd6bbc2239f047f782a05e888990011e51 (patch) | |
tree | 2b3d8a194d3dd33a5d344b4ec6376dbdfdb3eb0c /src/kmain.c | |
parent | undo bad decisions (diff) | |
download | corn-192a4ccd6bbc2239f047f782a05e888990011e51.tar.gz corn-192a4ccd6bbc2239f047f782a05e888990011e51.tar.bz2 corn-192a4ccd6bbc2239f047f782a05e888990011e51.zip |
acpi, fix mboot memory map, fix kalloc, fix virtalloc node allocator, add kprintf, other changes
Diffstat (limited to '')
-rw-r--r-- | src/kmain.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kmain.c b/src/kmain.c index 54ed506..057620d 100644 --- a/src/kmain.c +++ b/src/kmain.c @@ -10,11 +10,13 @@ void kmain(struct boot_info *info) { //acpi_init(info->acpi_table); //fb_init(1024, 768); - serial_out_str("entered kmain\n"); + 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 } |