From fab50ccf7c952658e22c401147a482e70fc74edf Mon Sep 17 00:00:00 2001 From: Felipe Neves Date: Wed, 27 Nov 2019 14:51:09 -0300 Subject: [PATCH] expression_with_stack_xtensa: call esp watchpoint function using a callx4 to fix range problem of call4 function --- components/xtensa/expression_with_stack_xtensa_asm.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/xtensa/expression_with_stack_xtensa_asm.S b/components/xtensa/expression_with_stack_xtensa_asm.S index 01d5034da..106eb6f9c 100644 --- a/components/xtensa/expression_with_stack_xtensa_asm.S +++ b/components/xtensa/expression_with_stack_xtensa_asm.S @@ -47,7 +47,8 @@ esp_switch_stack_exit: #ifndef __XTENSA_CALL0_ABI__ entry sp, 0x10 movi a6, 2 - call4 esp_clear_watchpoint /* clear the watchpoint before releasing stack */ + movi a4, esp_clear_watchpoint + callx4 a4 /* clear the watchpoint before releasing stack */ l32i a4, a2, 0 /* recover the original task stack */ mov a1, a4 /* put it on sp register again */ retw