summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/panic.c19
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));
-}