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