提交 c5fdf7e0 编写于 作者: Z Zong Li 提交者: Greentime Hu

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: NZong Li <zong@andestech.com>
Acked-by: NGreentime Hu <greentime@andestech.com>
Signed-off-by: NGreentime Hu <greentime@andestech.com>
上级 1e377ae9
...@@ -117,13 +117,8 @@ static void __dump(struct task_struct *tsk, unsigned long *base_reg) ...@@ -117,13 +117,8 @@ static void __dump(struct task_struct *tsk, unsigned long *base_reg)
!((unsigned long)base_reg & 0x3) && !((unsigned long)base_reg & 0x3) &&
((unsigned long)base_reg >= TASK_SIZE)) { ((unsigned long)base_reg >= TASK_SIZE)) {
unsigned long next_fp; 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]; ret_addr = base_reg[-1];
next_fp = base_reg[FP_OFFSET]; next_fp = base_reg[FP_OFFSET];
#endif
if (__kernel_text_address(ret_addr)) { if (__kernel_text_address(ret_addr)) {
ret_addr = ftrace_graph_ret_addr( ret_addr = ftrace_graph_ret_addr(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册