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

Commit 6fc61ee6 authored by Greentime Hu's avatar Greentime Hu
Browse files

nds32: To use the generic dump_stack()



Use the generic dump_stack() instead of nds32 one because they are doing
the same thing.

Signed-off-by: default avatarGreentime Hu <greentime@andestech.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
parent e1158076
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -156,18 +156,6 @@ static void __dump(struct task_struct *tsk, unsigned long *base_reg)
	pr_emerg("\n");
}

void dump_stack(void)
{
	unsigned long *base_reg;
	if (!IS_ENABLED(CONFIG_FRAME_POINTER))
		__asm__ __volatile__("\tori\t%0, $sp, #0\n":"=r"(base_reg));
	else
		__asm__ __volatile__("\tori\t%0, $fp, #0\n":"=r"(base_reg));
	__dump(NULL, base_reg);
}

EXPORT_SYMBOL(dump_stack);

void show_stack(struct task_struct *tsk, unsigned long *sp)
{
	unsigned long *base_reg;