summaryrefslogtreecommitdiff
path: root/arch/i386/make.config
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-06-24 02:07:27 -0500
committerDanny Holman <dholman@gymli.org>2024-06-24 02:07:27 -0500
commitb09100f8b79b77f613f5d68fd661e3cbaf1f5c86 (patch)
tree25c053e2b2a39e9ca356d57428bb5b045d7d42a9 /arch/i386/make.config
parent5e376ab1287be429c021907fa719ce42173b1df2 (diff)
arch: i386: add a function that walks the stack
Add a function that will walk the stack and save the return addresses into an array. This will allow the kernel to print out stack traces during a panic or on demand inside a debugger. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'arch/i386/make.config')
-rw-r--r--arch/i386/make.config1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/i386/make.config b/arch/i386/make.config
index 82d0733..557f01a 100644
--- a/arch/i386/make.config
+++ b/arch/i386/make.config
@@ -7,6 +7,7 @@ KERNEL_ARCH_OBJS=$(ARCHDIR)/boot/boot.o \
$(ARCHDIR)/kernel/idt.o \
$(ARCHDIR)/kernel/gdt.o \
$(ARCHDIR)/kernel/isr.o \
+ $(ARCHDIR)/kernel/stack_trace.o \
$(ARCHDIR)/kernel/multiboot.o \
$(ARCHDIR)/kernel/serial.o \
$(ARCHDIR)/kernel/pic.o \