Skip to content

Commit

Permalink
nds32: To use the generic dump_stack()
Browse files Browse the repository at this point in the history
Use the generic dump_stack() instead of nds32 one because they are doing
the same thing.

Signed-off-by: Greentime Hu <greentime@andestech.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Greentime Hu committed Mar 16, 2018
1 parent e115807 commit 6fc61ee
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions arch/nds32/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6fc61ee

Please sign in to comment.