thermosphere: disable interrupts in debugPauseCores

This commit is contained in:
TuxSH 2020-01-16 01:41:43 +00:00
parent 906d6a4f20
commit 92a291cd41

View file

@ -59,6 +59,8 @@ void debugPauseWaitAndUpdateSingleStep(void)
void debugPauseCores(u32 coreList) void debugPauseCores(u32 coreList)
{ {
maskIrq();
// Since we're using a debugger lock, a simple stlr should be fine... // Since we're using a debugger lock, a simple stlr should be fine...
atomic_store(&g_debugPausePausedCoreList, coreList); atomic_store(&g_debugPausePausedCoreList, coreList);
@ -73,6 +75,8 @@ void debugPauseCores(u32 coreList)
if (coreList & BIT(currentCoreCtx->coreId)) { if (coreList & BIT(currentCoreCtx->coreId)) {
currentCoreCtx->wasPaused = true; currentCoreCtx->wasPaused = true;
} }
unmaskIrq();
} }
void debugUnpauseCores(u32 coreList, u32 singleStepList) void debugUnpauseCores(u32 coreList, u32 singleStepList)