[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <78c2435e2e53169a3190d30e971c5df8a6819919.1534730156.git.zong@andestech.com>
Date: Mon, 20 Aug 2018 10:15:04 +0800
From: Zong Li <zong@...estech.com>
To: <green.hu@...il.com>, <linux-kernel@...r.kernel.org>
CC: <zongbox@...il.com>, <greentime@...estech.com>,
Zong Li <zong@...estech.com>
Subject: [PATCH 1/2] 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@...estech.com>
---
arch/nds32/kernel/traps.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/arch/nds32/kernel/traps.c b/arch/nds32/kernel/traps.c
index 7684c8f..f432310 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(
--
2.7.4
Powered by blists - more mailing lists