summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreentime Hu <greentime@andestech.com>2018-03-07 17:45:16 +0800
committerGreentime Hu <greentime@andestech.com>2018-03-16 15:45:23 +0800
commit6fc61ee69433e7e0433cabd36f78bb5fb3b26524 (patch)
tree5170dd912074656d73360450926cf05ab41fd6da
parente115807657633432b97549d3bd83a74179603c0c (diff)
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: Greentime Hu <greentime@andestech.com> Acked-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r--arch/nds32/kernel/traps.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/nds32/kernel/traps.c b/arch/nds32/kernel/traps.c
index 8828b4aeb72b..6e34eb9824a4 100644
--- a/arch/nds32/kernel/traps.c
+++ b/arch/nds32/kernel/traps.c
@@ -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;