提交 e8200baa 编写于 作者: C Chris Metcalf

tile: fix "odd fault" warning for stack backtraces

We were setting ex1 in new kernel threads to KERNEL_PL.
But since we just do a simple context-switch, not an iret,
any value set here is ignored anyway, and its presence causes
stack backtraces to end with a warning about an "odd fault".
Signed-off-by: NChris Metcalf <cmetcalf@ezchip.com>
上级 9a5d2cbe
...@@ -133,7 +133,6 @@ int copy_thread(unsigned long clone_flags, unsigned long sp, ...@@ -133,7 +133,6 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
(CALLEE_SAVED_REGS_COUNT - 2) * sizeof(unsigned long)); (CALLEE_SAVED_REGS_COUNT - 2) * sizeof(unsigned long));
callee_regs[0] = sp; /* r30 = function */ callee_regs[0] = sp; /* r30 = function */
callee_regs[1] = arg; /* r31 = arg */ callee_regs[1] = arg; /* r31 = arg */
childregs->ex1 = PL_ICS_EX1(KERNEL_PL, 0);
p->thread.pc = (unsigned long) ret_from_kernel_thread; p->thread.pc = (unsigned long) ret_from_kernel_thread;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册