From 4bd530d026c0dc8af0c20371aac993b881c81fbc Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 18 Dec 2016 13:17:31 -0600 Subject: [PATCH] Xtensa ESP32: Last change should be conditioned on the window ABI. --- arch/xtensa/src/common/xtensa_context.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/xtensa/src/common/xtensa_context.S b/arch/xtensa/src/common/xtensa_context.S index 9084f9bf31..aa0306cb5a 100644 --- a/arch/xtensa/src/common/xtensa_context.S +++ b/arch/xtensa/src/common/xtensa_context.S @@ -527,8 +527,9 @@ _xtensa_context_restore: .align 4 xtensa_context_restore: - ENTRY(16) /* REVISIT */ + ENTRY(16) +#ifndef __XTENSA_CALL0_ABI__ /* Force a spill of the live registers of the thread that has been * suspended. * @@ -557,6 +558,7 @@ xtensa_context_restore: rsync mov a2, a4 /* Recover a2 */ +#endif /* Restore the processor state for the newly started thread */