mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
sched/sched: Extend the last global lock change to work with the lc823450-xgevk which does not support the atomic fetch add but does support disabling interprocessor interrupts. Disabling interprocessor interrupts will also guarantee that the TCB addres calculation is atomic.
This commit is contained in:
@@ -615,7 +615,7 @@ bool irq_cpu_locked(int cpu)
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_ARCH_HAVE_FETCHADD
|
||||
#if defined(CONFIG_ARCH_HAVE_FETCHADD) && !defined(CONFIG_ARCH_GLOBAL_IRQDISABLE)
|
||||
/* If the global lockcount has been incremented then simply return true */
|
||||
|
||||
if (g_global_lockcount > 0)
|
||||
|
||||
Reference in New Issue
Block a user