Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24dc6ead authored by Tom 'spot' Callaway's avatar Tom 'spot' Callaway Committed by David S. Miller
Browse files

[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: default avatarTom 'spot' Callaway <tcallawa@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 205a7eda
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
@@ -333,6 +333,17 @@ void show_stack(struct task_struct *tsk, unsigned long *_ksp)
	printk("\n");
	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.
 * Note: sparc64 has a pretty intricated thread_saved_pc, check it out.
 */
 */