diff options
author | Tom 'spot' Callaway <tcallawa@redhat.com> | 2005-04-24 23:46:49 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-04-24 23:46:49 -0400 |
commit | 24dc6ead53f8fcae4b1908c4ea3fea75ee844a6d (patch) | |
tree | d84893bc9d156955ac40a4baad12ad477325408f | |
parent | 205a7edad99d68d57dfcbf9bdda1a6fb7c33169e (diff) |
[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>
-rw-r--r-- | arch/sparc/kernel/process.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/sparc/kernel/process.c b/arch/sparc/kernel/process.c index 143fe2f3c1c4..066e253f9c12 100644 --- a/arch/sparc/kernel/process.c +++ b/arch/sparc/kernel/process.c | |||
@@ -333,6 +333,17 @@ void show_stack(struct task_struct *tsk, unsigned long *_ksp) | |||
333 | printk("\n"); | 333 | printk("\n"); |
334 | } | 334 | } |
335 | 335 | ||
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 | |||
336 | /* | 347 | /* |
337 | * Note: sparc64 has a pretty intricated thread_saved_pc, check it out. | 348 | * Note: sparc64 has a pretty intricated thread_saved_pc, check it out. |
338 | */ | 349 | */ |