This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 5ab888692e849cc0ca0412c3bd0d091467fc5a19
Author: Abdelatif Guettouche <[email protected]>
AuthorDate: Mon Jun 13 14:55:54 2022 +0200

    arch/xtensa/xtensa_context: Place the functions in EXCEPTION_HANDLER
    section (IRAM for ESP32xx chips).
    
    Signed-off-by: Abdelatif Guettouche <[email protected]>
---
 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 <arch/xtensa/xtensa_abi.h>
 #include <arch/xtensa/xtensa_specregs.h>
 
+#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
 

Reply via email to