From 92a291cd411475b01e59c11d8b8dcca470cc5855 Mon Sep 17 00:00:00 2001 From: TuxSH <1922548+TuxSH@users.noreply.github.com> Date: Thu, 16 Jan 2020 01:41:43 +0000 Subject: [PATCH] thermosphere: disable interrupts in debugPauseCores --- thermosphere/src/debug_pause.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/thermosphere/src/debug_pause.c b/thermosphere/src/debug_pause.c index 2ff103df0..ed9d062d5 100644 --- a/thermosphere/src/debug_pause.c +++ b/thermosphere/src/debug_pause.c @@ -59,6 +59,8 @@ void debugPauseWaitAndUpdateSingleStep(void) void debugPauseCores(u32 coreList) { + maskIrq(); + // Since we're using a debugger lock, a simple stlr should be fine... atomic_store(&g_debugPausePausedCoreList, coreList); @@ -73,6 +75,8 @@ void debugPauseCores(u32 coreList) if (coreList & BIT(currentCoreCtx->coreId)) { currentCoreCtx->wasPaused = true; } + + unmaskIrq(); } void debugUnpauseCores(u32 coreList, u32 singleStepList)