summaryrefslogtreecommitdiffstats
path: root/arch/nds32/kernel
diff options
context:
space:
mode:
authorZong Li <zong@andestech.com>2018-08-20 03:40:08 +0200
committerGreentime Hu <greentime@andestech.com>2018-09-04 08:45:19 +0200
commitc5fdf7e00d490dc094a97d287e0fa27e253cca84 (patch)
treebab8aaabf55416b793eeef6efdbcb9503f7eb140 /arch/nds32/kernel
parentnds32/stack: Get real return address by using ftrace_graph_ret_addr (diff)
downloadlinux-c5fdf7e00d490dc094a97d287e0fa27e253cca84.tar.xz
linux-c5fdf7e00d490dc094a97d287e0fa27e253cca84.zip
nds32: Remove the deprecated ABI implementation
We are not using NDS32 ABI 2 for now, just remove the preprocessor directives __NDS32_ABI_2. Signed-off-by: Zong Li <zong@andestech.com> Acked-by: Greentime Hu <greentime@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com>
Diffstat (limited to 'arch/nds32/kernel')
-rw-r--r--arch/nds32/kernel/traps.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/nds32/kernel/traps.c b/arch/nds32/kernel/traps.c
index 7684c8f597ed..f432310f3d02 100644
--- a/arch/nds32/kernel/traps.c
+++ b/arch/nds32/kernel/traps.c
@@ -117,13 +117,8 @@ static void __dump(struct task_struct *tsk, unsigned long *base_reg)
!((unsigned long)base_reg & 0x3) &&
((unsigned long)base_reg >= TASK_SIZE)) {
unsigned long next_fp;
-#if !defined(__NDS32_ABI_2)
- ret_addr = base_reg[0];
- next_fp = base_reg[1];
-#else
ret_addr = base_reg[-1];
next_fp = base_reg[FP_OFFSET];
-#endif
if (__kernel_text_address(ret_addr)) {
ret_addr = ftrace_graph_ret_addr(