Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377062
b: refs/heads/master
c: 9cc5c20
h: refs/heads/master
v: v3
  • Loading branch information
Martin Schwidefsky committed Jun 5, 2013
1 parent 54ef3b1 commit 401d5ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 338679f7ba4a81906b3fdfa6507824fdf704be80
refs/heads/master: 9cc5c206d9b44b7763aab3082a5be72c78a3ef7a
12 changes: 8 additions & 4 deletions trunk/arch/s390/kernel/dumpstack.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ __show_trace(unsigned long sp, unsigned long low, unsigned long high)

static void show_trace(struct task_struct *task, unsigned long *stack)
{
const unsigned long frame_size =
STACK_FRAME_OVERHEAD + sizeof(struct pt_regs);
register unsigned long __r15 asm ("15");
unsigned long sp;

Expand All @@ -82,11 +84,13 @@ static void show_trace(struct task_struct *task, unsigned long *stack)
sp = task ? task->thread.ksp : __r15;
printk("Call Trace:\n");
#ifdef CONFIG_CHECK_STACK
sp = __show_trace(sp, S390_lowcore.panic_stack - 4096,
S390_lowcore.panic_stack);
sp = __show_trace(sp,
S390_lowcore.panic_stack + frame_size - 4096,
S390_lowcore.panic_stack + frame_size);
#endif
sp = __show_trace(sp, S390_lowcore.async_stack - ASYNC_SIZE,
S390_lowcore.async_stack);
sp = __show_trace(sp,
S390_lowcore.async_stack + frame_size - ASYNC_SIZE,
S390_lowcore.async_stack + frame_size);
if (task)
__show_trace(sp, (unsigned long) task_stack_page(task),
(unsigned long) task_stack_page(task) + THREAD_SIZE);
Expand Down

0 comments on commit 401d5ea

Please sign in to comment.