summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/hosted/sdl/kernel-sdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/sdl/kernel-sdl.c b/firmware/target/hosted/sdl/kernel-sdl.c
index 0b416858ea..d933b9097e 100644
--- a/firmware/target/hosted/sdl/kernel-sdl.c
+++ b/firmware/target/hosted/sdl/kernel-sdl.c
@@ -40,7 +40,7 @@ static SDL_cond *sim_thread_cond;
* inside a handler */
static SDL_mutex *sim_irq_mtx;
/* Level: 0 = enabled, not 0 = disabled */
-static int interrupt_level = HIGHEST_IRQ_LEVEL;
+static int volatile interrupt_level = HIGHEST_IRQ_LEVEL;
/* How many handers waiting? Not strictly needed because CondSignal is a
* noop if no threads were waiting but it filters-out calls to functions
* with higher overhead and provides info when debugging. */