mirror of
https://github.com/apache/nuttx.git
synced 2026-08-07 13:37:18 +00:00
arm: we should use tcb->xcp.regs instead of up_current_regs() as the basis for judging whether to call restore_critical_section.
This commit fixes the regression from https://github.com/apache/nuttx/pull/13444 Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
542e2ba625
commit
efdb4322fc
3 changed files with 3 additions and 3 deletions
|
|
@ -474,7 +474,7 @@ int arm_svcall(int irq, void *context, void *arg)
|
|||
# endif
|
||||
#endif
|
||||
|
||||
if (regs != up_current_regs())
|
||||
if (regs != tcb->xcp.regs)
|
||||
{
|
||||
restore_critical_section(this_task(), this_cpu());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -483,7 +483,7 @@ int arm_svcall(int irq, void *context, void *arg)
|
|||
# endif
|
||||
#endif
|
||||
|
||||
if (regs != up_current_regs())
|
||||
if (regs != tcb->xcp.regs)
|
||||
{
|
||||
restore_critical_section(this_task(), this_cpu());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -484,7 +484,7 @@ int arm_svcall(int irq, void *context, void *arg)
|
|||
# endif
|
||||
#endif
|
||||
|
||||
if (regs != up_current_regs())
|
||||
if (regs != tcb->xcp.regs)
|
||||
{
|
||||
restore_critical_section(this_task(), this_cpu());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue