summaryrefslogtreecommitdiff
path: root/arch/xtensa/core/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/core/thread.c')
-rw-r--r--arch/xtensa/core/thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/xtensa/core/thread.c b/arch/xtensa/core/thread.c
index 3cc4574f9..02b6b5a2e 100644
--- a/arch/xtensa/core/thread.c
+++ b/arch/xtensa/core/thread.c
@@ -126,12 +126,12 @@ void _new_thread(char *pStack, size_t stackSize,
pInitCtx->a5 = (uint32_t)p3;
pInitCtx->ps = PS_UM | PS_EXCM;
#else
- /* For windowed ABI set also WOE and CALLINC (pretend task is 'call8'). */
+ /* For windowed ABI set also WOE and CALLINC (pretend task is 'call4'). */
pInitCtx->a6 = (uint32_t)pEntry;
pInitCtx->a7 = (uint32_t)p1;
pInitCtx->a8 = (uint32_t)p2;
pInitCtx->a9 = (uint32_t)p3;
- pInitCtx->ps = PS_UM | PS_EXCM | PS_WOE | PS_CALLINC(2);
+ pInitCtx->ps = PS_UM | PS_EXCM | PS_WOE | PS_CALLINC(1);
#endif
tcs->callee_saved.topOfStack = pInitCtx;
tcs->arch.flags = 0;