Skip to content

Commit 9cd1c81

Browse files
chirping78xiaoxiang781216
authored andcommitted
xtensa: use up_interrupt_context() to determine if in interrupt context
Signed-off-by: chenxiaoyi <[email protected]>
1 parent e2a9c84 commit 9cd1c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/xtensa/src/common/xtensa_switchcontext.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void up_switch_context(struct tcb_s *tcb, struct tcb_s *rtcb)
5959
{
6060
/* Are we in an interrupt handler? */
6161

62-
if (!up_current_regs())
62+
if (!up_interrupt_context())
6363
{
6464
/* Switch context to the context of the task at the head of the
6565
* ready to run list.

0 commit comments

Comments
 (0)