summaryrefslogtreecommitdiff
path: root/arch/tile/kernel
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@ezchip.com>2015-05-07 14:34:59 -0400
committerChris Metcalf <cmetcalf@ezchip.com>2015-05-11 11:22:37 -0400
commite8200baa2fd2e9c4bc7abd824a9e675d914e54a0 (patch)
tree15f8d8ddcbb284afae5b6f3000743c28209f3314 /arch/tile/kernel
parent9a5d2cbe6a1623dadfd93007382b0d12d6bac894 (diff)
downloadlwn-e8200baa2fd2e9c4bc7abd824a9e675d914e54a0.tar.gz
lwn-e8200baa2fd2e9c4bc7abd824a9e675d914e54a0.zip
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: Chris Metcalf <cmetcalf@ezchip.com>
Diffstat (limited to 'arch/tile/kernel')
-rw-r--r--arch/tile/kernel/process.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/tile/kernel/process.c b/arch/tile/kernel/process.c
index 0dddcf7e5bfa..96ea75e04582 100644
--- a/arch/tile/kernel/process.c
+++ b/arch/tile/kernel/process.c
@@ -133,7 +133,6 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
(CALLEE_SAVED_REGS_COUNT - 2) * sizeof(unsigned long));
callee_regs[0] = sp; /* r30 = function */
callee_regs[1] = arg; /* r31 = arg */
- childregs->ex1 = PL_ICS_EX1(KERNEL_PL, 0);
p->thread.pc = (unsigned long) ret_from_kernel_thread;
return 0;
}