Skip to contentSkip to conversation

tile: fix "odd fault" warning for stack backtraces

PATCH New Chris Metcalf 1 participant 1 message May 7, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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".

---
 arch/tile/kernel/process.c | 1 -
 1 file changed, 1 deletion(-)
arch/tile/kernel/process.c +0 -1
index 0dddcf7e5bfa..96ea75e04582 100644
@@ -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;
 	}
Signature · 1 line
2.1.2