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:
hujun5
2024-09-25 12:30:05 +08:00
committed by Masayuki Ishikawa
parent 542e2ba625
commit efdb4322fc
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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());
}
+1 -1
View File
@@ -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());
}
+1 -1
View File
@@ -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());
}