From 5eb2d79996132f148d16fe16bbfb8d35615f1b56 Mon Sep 17 00:00:00 2001 From: TuxSH 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)