diff options
author | Freya Murphy <freya@freyacat.org> | 2024-02-02 10:10:24 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-02-02 10:13:32 -0500 |
commit | 1d794d87f4307f7b34f5b69d69213343aed9d137 (patch) | |
tree | 50d2508ddc4e6be814d31bfb37a37065e5e71525 /src/kmain.c | |
parent | debugger (diff) | |
download | corn-1d794d87f4307f7b34f5b69d69213343aed9d137.tar.gz corn-1d794d87f4307f7b34f5b69d69213343aed9d137.tar.bz2 corn-1d794d87f4307f7b34f5b69d69213343aed9d137.zip |
looping kalloc can allocate all of memory (sometimes) :3
Diffstat (limited to 'src/kmain.c')
-rw-r--r-- | src/kmain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kmain.c b/src/kmain.c index 07244bf..7501669 100644 --- a/src/kmain.c +++ b/src/kmain.c @@ -8,8 +8,8 @@ void kmain(struct boot_info *info) { memory_init(&info->map); - //acpi_init(info->acpi_table); //fb_init(1024, 768); + //acpi_init(info->acpi_table); kprintf("enterd kmain\n"); @@ -17,7 +17,7 @@ void kmain(struct boot_info *info) { *(char *)(0xB8000 + 0x146) = 'i'; while (1) { - //kprintf("ret: 0x%p\n", kalloc(1024)); + __asm__("hlt;"); // loop so we dont halt // this allows interrupts to fire } |