mirror of
https://github.com/apache/nuttx.git
synced 2026-08-18 12:08:16 +00:00
xtensa: use up_interrupt_context() to determine if in interrupt context
Signed-off-by: chenxiaoyi <chenxiaoyi@xiaomi.com>
This commit is contained in:
parent
e2a9c84260
commit
9cd1c81149
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue