From 5ab888692e849cc0ca0412c3bd0d091467fc5a19 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Mon, 13 Jun 2022 14:55:54 +0200 Subject: [PATCH] arch/xtensa/xtensa_context: Place the functions in EXCEPTION_HANDLER section (IRAM for ESP32xx chips). Signed-off-by: Abdelatif Guettouche --- arch/xtensa/src/common/xtensa_context.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/xtensa/src/common/xtensa_context.S b/arch/xtensa/src/common/xtensa_context.S index 99b4bd7cfb..b74970abed 100644 --- a/arch/xtensa/src/common/xtensa_context.S +++ b/arch/xtensa/src/common/xtensa_context.S @@ -66,6 +66,7 @@ #include #include +#include "chip.h" #include "syscall.h" #include "xtensa_asm_utils.h" #include "xtensa_coproc.S" @@ -74,8 +75,6 @@ * Public Functions ****************************************************************************/ - .text - /**************************************************************************** * Name: _xtensa_context_save * @@ -106,6 +105,7 @@ * ****************************************************************************/ + .section HANDLER_SECTION, "ax" .global _xtensa_context_save .type _xtensa_context_save, @function @@ -235,6 +235,7 @@ _xtensa_context_save: * ****************************************************************************/ + .section HANDLER_SECTION, "ax" .global _xtensa_context_restore .type _xtensa_context_restore,@function