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

raiden00 pushed a commit to branch releases/12.7
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 2f4c067c50500cf50e5daab8b1eb72ced8bbc9cf
Author: hujun5 <[email protected]>
AuthorDate: Sun Sep 29 13:55:56 2024 +0800

    fix compile error:
    
    Register: smp
    Register: nsh
    Register: sh
    Register: getprime
    Register: ostest
    Espressif HAL for 3rd Party Platforms: 
b4c723a119344b4b71d69819019d55637fb570fd
    common/xtensa_cpupause.c: In function 'xtensa_pause_handler':
    common/xtensa_cpupause.c:240:3: warning: implicit declaration of function 
'xtensa_savestate'; did you mean 'xtensa_setps'? 
[-Wimplicit-function-declaration]
      240 |   xtensa_savestate(tcb->xcp.regs);
          |   ^~~~~~~~~~~~~~~~
          |   xtensa_setps
    common/xtensa_cpupause.c:243:3: warning: implicit declaration of function 
'xtensa_restorestate'; did you mean 'xtensa_context_restore'? 
[-Wimplicit-function-declaration]
      243 |   xtensa_restorestate(tcb->xcp.regs);
          |   ^~~~~~~~~~~~~~~~~~~
          |   xtensa_context_restore
    
    Signed-off-by: hujun5 <[email protected]>
---
 arch/xtensa/src/common/xtensa_cpupause.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/xtensa/src/common/xtensa_cpupause.c 
b/arch/xtensa/src/common/xtensa_cpupause.c
index 37f749c44f..3709e45da8 100644
--- a/arch/xtensa/src/common/xtensa_cpupause.c
+++ b/arch/xtensa/src/common/xtensa_cpupause.c
@@ -244,11 +244,7 @@ void xtensa_pause_handler(void)
       leave_critical_section(flags);
     }
 
-  tcb = current_task(cpu);
-  xtensa_savestate(tcb->xcp.regs);
   nxsched_process_delivered(cpu);
-  tcb = current_task(cpu);
-  xtensa_restorestate(tcb->xcp.regs);
 }
 
 /****************************************************************************

Reply via email to