diff options
author | Danny Holman <dholman@gymli.org> | 2024-05-27 14:25:27 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-05-27 14:26:45 -0500 |
commit | 5fb0ba537ab15f9c83afd9a939cf57c84d443856 (patch) | |
tree | 50592128b2ae9779dc570c1ae89db3f3d64ae495 /kernel | |
parent | e472fbf564a8dee7ec4cb03b3e77a213a017bc76 (diff) |
arch: i386: pmem: refactor the physical MM
Refactor the physical memory manager to be dramatically simpler. The new
design uses only a single freelist, and only uses temporary mappings
where needed.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/panic.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/kernel/panic.c b/kernel/panic.c index b92ee4d..e7eb330 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -1,5 +1,5 @@ #include <kernel/panic.h> -#include <kernel/io.h> +#include <libk/io.h> #include <stdint.h> #include <stddef.h> @@ -10,20 +10,3 @@ void panic(const char *str) { panicked = 1; while (1); } - -void dump_reg(struct regs *regs) { - kprintf("Registers at interrupt:\n"); - kprintf("\tEAX = %x\n", regs->eax); - kprintf("\tEBX = %x\n", regs->ebx); - kprintf("\tECX = %x\n", regs->ecx); - kprintf("\tEDX = %x\n", regs->edx); - kprintf("\tESI = %x\n", regs->esi); - kprintf("\tEDI = %x\n", regs->edi); - kprintf("\tEIP = %x\n", regs->eip); - kprintf("Current code selector: %x\n", regs->cs); -} - -void dump_stack(struct regs *regs, size_t len) { - //for (uint32_t i = 0; i < len; i++) - // kprintf("%x:\t%x\n", esp+i, *(uint32_t*)(esp+i)); -} |