[uClinux-dev] [PATCH] m68knommu start stack dump at exception-time
sp
Philippe De Muyter
phdm at macqel.be
Thu Mar 29 09:27:45 EST 2007
Hi Greg,
Start the stack dump at the exception-time sp; the stack below contains
only exception-saved values and is already printed in details just before.
Signed-off-by: Philippe De Muyter <phdm at macqel.be>
diff -r f8b279fd0eab arch/m68knommu/kernel/traps.c
--- a/arch/m68knommu/kernel/traps.c Mon Mar 19 20:20:56 2007 -0700
+++ b/arch/m68knommu/kernel/traps.c Thu Mar 29 16:19:55 2007 +0200
@@ -82,7 +82,7 @@ void die_if_kernel(char *str, struct pt_
printk(KERN_EMERG "Process %s (pid: %d, stackpage=%08lx)\n",
current->comm, current->pid, PAGE_SIZE+(unsigned long)current);
- show_stack(NULL, (unsigned long *)fp);
+ show_stack(NULL, (unsigned long *)(fp+1));
do_exit(SIGSEGV);
}
More information about the uClinux-dev
mailing list