Skip to content

Commit

Permalink
xtensa: use up_interrupt_context() to determine if in interrupt context
Browse files Browse the repository at this point in the history
Signed-off-by: chenxiaoyi <[email protected]>
  • Loading branch information
chenxiaoyi authored and xiaoxiang781216 committed Nov 13, 2024
1 parent e2a9c84 commit 9cd1c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/xtensa/src/common/xtensa_switchcontext.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9cd1c81

Please sign in to comment.