Skip to content

Commit

Permalink
[SPARC]: dump_stack for sparc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tom 'spot' Callaway authored and David S. Miller committed Apr 25, 2005
1 parent 205a7ed commit 24dc6ea
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions arch/sparc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,17 @@ void show_stack(struct task_struct *tsk, unsigned long *_ksp)
printk("\n");
}

void dump_stack(void)
{
unsigned long *ksp;

__asm__ __volatile__("mov %%fp, %0"
: "=r" (ksp));
show_stack(current, ksp);
}

EXPORT_SYMBOL(dump_stack);

/*
* Note: sparc64 has a pretty intricated thread_saved_pc, check it out.
*/
Expand Down

0 comments on commit 24dc6ea

Please sign in to comment.