summaryrefslogtreecommitdiff
path: root/kernel/cpu
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-08 17:55:13 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-08 17:55:13 -0400
commit331a2a442b2c8595002d342372d4d08f104b382d (patch)
tree7f46cf1a774d9135383125211b268b28df34d232 /kernel/cpu
parentremove boot dir (diff)
downloadcomus-331a2a442b2c8595002d342372d4d08f104b382d.tar.gz
comus-331a2a442b2c8595002d342372d4d08f104b382d.tar.bz2
comus-331a2a442b2c8595002d342372d4d08f104b382d.zip
backtrace
Diffstat (limited to 'kernel/cpu')
-rw-r--r--kernel/cpu/idt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/cpu/idt.c b/kernel/cpu/idt.c
index 6bd1a7a..5b93987 100644
--- a/kernel/cpu/idt.c
+++ b/kernel/cpu/idt.c
@@ -1,3 +1,4 @@
+#include "lib/klib.h"
#include <lib.h>
#include <comus/memory.h>
#include <comus/asm.h>
@@ -197,6 +198,8 @@ void idt_exception_handler(uint64_t exception, uint64_t code, regs_t *state)
kputs("\n");
+ log_backtrace_ex((void *)state->rip, (void *)state->rbp);
+
while (1) {
halt();
}