Hi Greg,

In `die if kernel', start the stack dump at the exception-time sp, not at the sp
with all the saved registers; the stack below exception-time sp contains
only exception-saved values and is already printed in details just before.

Signed-off-by: Philippe De Muyter <[EMAIL PROTECTED]>

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);
 }
 

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to