From b09100f8b79b77f613f5d68fd661e3cbaf1f5c86 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Mon, 24 Jun 2024 02:07:27 -0500 Subject: 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 --- arch/i386/make.config | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/i386/make.config') 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 \ -- cgit v1.2.3