SMP: Add support for linking spinlocks into a special, non-cached memory region.

This commit is contained in:
Gregory Nutt
2016-11-26 08:47:03 -06:00
parent 1d06e786e1
commit e3fe320e08
11 changed files with 109 additions and 40 deletions
+3 -3
View File
@@ -60,12 +60,12 @@
* disabled.
*/
volatile spinlock_t g_cpu_irqlock = SP_UNLOCKED;
volatile spinlock_t g_cpu_irqlock SP_SECTION = SP_UNLOCKED;
/* Used to keep track of which CPU(s) hold the IRQ lock. */
volatile spinlock_t g_cpu_irqsetlock;
volatile cpu_set_t g_cpu_irqset;
volatile spinlock_t g_cpu_irqsetlock SP_SECTION;
volatile cpu_set_t g_cpu_irqset SP_SECTION;
#endif
/****************************************************************************