mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08: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:
committed by
Masayuki Ishikawa
parent
542e2ba625
commit
efdb4322fc
@@ -474,7 +474,7 @@ int arm_svcall(int irq, void *context, void *arg)
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (regs != up_current_regs())
|
if (regs != tcb->xcp.regs)
|
||||||
{
|
{
|
||||||
restore_critical_section(this_task(), this_cpu());
|
restore_critical_section(this_task(), this_cpu());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -483,7 +483,7 @@ int arm_svcall(int irq, void *context, void *arg)
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (regs != up_current_regs())
|
if (regs != tcb->xcp.regs)
|
||||||
{
|
{
|
||||||
restore_critical_section(this_task(), this_cpu());
|
restore_critical_section(this_task(), this_cpu());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -484,7 +484,7 @@ int arm_svcall(int irq, void *context, void *arg)
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (regs != up_current_regs())
|
if (regs != tcb->xcp.regs)
|
||||||
{
|
{
|
||||||
restore_critical_section(this_task(), this_cpu());
|
restore_critical_section(this_task(), this_cpu());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user