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

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


The following commit(s) were added to refs/heads/master by this push:
     new 9cd1c81149 xtensa: use up_interrupt_context() to determine if in 
interrupt context
9cd1c81149 is described below

commit 9cd1c81149ab7e26db706ca60fe34fd8fbd6e451
Author: chenxiaoyi <[email protected]>
AuthorDate: Wed Nov 13 16:47:45 2024 +0800

    xtensa: use up_interrupt_context() to determine if in interrupt context
    
    Signed-off-by: chenxiaoyi <[email protected]>
---
 arch/xtensa/src/common/xtensa_switchcontext.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/xtensa/src/common/xtensa_switchcontext.c 
b/arch/xtensa/src/common/xtensa_switchcontext.c
index a98e3e1069..453f367193 100644
--- a/arch/xtensa/src/common/xtensa_switchcontext.c
+++ b/arch/xtensa/src/common/xtensa_switchcontext.c
@@ -59,7 +59,7 @@ void up_switch_context(struct tcb_s *tcb, struct tcb_s *rtcb)
 {
   /* Are we in an interrupt handler? */
 
-  if (!up_current_regs())
+  if (!up_interrupt_context())
     {
       /* Switch context to the context of the task at the head of the
        * ready to run list.

Reply via email to