Commit cb7d390d authored by Roman Zippel's avatar Roman Zippel Committed by Linus Torvalds

[PATCH] m68k: print correct stack trace

Pass unmodified stack argument to show_trace().
Signed-off-by: default avatarRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f6c4192e
...@@ -992,6 +992,7 @@ void show_registers(struct pt_regs *regs) ...@@ -992,6 +992,7 @@ void show_registers(struct pt_regs *regs)
void show_stack(struct task_struct *task, unsigned long *stack) void show_stack(struct task_struct *task, unsigned long *stack)
{ {
unsigned long *p;
unsigned long *endstack; unsigned long *endstack;
int i; int i;
...@@ -1004,12 +1005,13 @@ void show_stack(struct task_struct *task, unsigned long *stack) ...@@ -1004,12 +1005,13 @@ void show_stack(struct task_struct *task, unsigned long *stack)
endstack = (unsigned long *)(((unsigned long)stack + THREAD_SIZE - 1) & -THREAD_SIZE); endstack = (unsigned long *)(((unsigned long)stack + THREAD_SIZE - 1) & -THREAD_SIZE);
printk("Stack from %08lx:", (unsigned long)stack); printk("Stack from %08lx:", (unsigned long)stack);
p = stack;
for (i = 0; i < kstack_depth_to_print; i++) { for (i = 0; i < kstack_depth_to_print; i++) {
if (stack + 1 > endstack) if (p + 1 > endstack)
break; break;
if (i % 8 == 0) if (i % 8 == 0)
printk("\n "); printk("\n ");
printk(" %08lx", *stack++); printk(" %08lx", *p++);
} }
printk("\n"); printk("\n");
show_trace(stack); show_trace(stack);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment