Skip to content

Commit 24dc6ea

Browse files
Tom 'spot' Callawaydavem330
authored andcommitted
[SPARC]: dump_stack for sparc
Bob Breuer wrote a patch to add dump_stack for sparc. Supposedly, this was applied, but it doesn't exist in 2.6.11. This is the same patch, rediffed against 2.6.11. Signed-off-by: Tom 'spot' Callaway <tcallawa@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 205a7ed commit 24dc6ea

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎arch/sparc/kernel/process.c‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,17 @@ void show_stack(struct task_struct *tsk, unsigned long *_ksp)
333333
printk("\n");
334334
}
335335

336+
void dump_stack(void)
337+
{
338+
unsigned long *ksp;
339+
340+
__asm__ __volatile__("mov %%fp, %0"
341+
: "=r" (ksp));
342+
show_stack(current, ksp);
343+
}
344+
345+
EXPORT_SYMBOL(dump_stack);
346+
336347
/*
337348
* Note: sparc64 has a pretty intricated thread_saved_pc, check it out.
338349
*/

0 commit comments

Comments
 (0)