Make SpinLock IRQ_CTX irq_flags volatile
This commit is contained in:
@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
#define SPINLOCK_HINT() asm volatile("pause")
|
#define SPINLOCK_HINT() asm volatile("pause")
|
||||||
|
|
||||||
struct {
|
static struct {
|
||||||
uint64_t irq_flags;
|
volatile uint64_t irq_flags;
|
||||||
atomic_int irq_nest;
|
atomic_int irq_nest;
|
||||||
} IRQ_CTX = {0};
|
} IRQ_CTX = {0};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user