mini-os: add stack walking debug
PATCH 1/1 mini-os: add stack walking debug
mini-os: add stack walking debug
extras/mini-os/arch/ia64/sched.c +5 -0
@@ -33,6 +33,11 @@/* The function is implemented in fw.S */ extern void thread_starter (void ); + +void stack_walk (void ) +{ +/* TODO */ +}struct thread *arch_create_thread (char *name,void (*function)(void *),void *data)
extras/mini-os/arch/x86/traps.c +70 -11
126 lines not on this page · raw message
extras/mini-os/include/ia64/traps.h +2 -0
@@ -48,5 +48,7 @@#include "ia64_cpu.h" +void stack_walk (void ); +#endif /* !defined(_TRAPS_H_) */
extras/mini-os/include/x86/traps.h +1 -0
@@ -69,6 +69,7 @@#endif void dump_regs (struct pt_regs *regs); +void stack_walk (void );#define TRAP_PF_PROT 0x1#define TRAP_PF_WRITE 0x2
extras/mini-os/kernel.c +1 -0
@@ -592,6 +592,7 @@void do_exit (void ) {printk ("Do_exit called!\n" ); +stack_walk ();for ( ;; ) {struct sched_shutdown sched_shutdown = { .reason = SHUTDOWN_crash };