1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-18 08:22:04 +00:00

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)
{
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)