mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-15 09:36:35 +00:00
thermosphere: disable interrupts in debugPauseCores
This commit is contained in:
parent
906d6a4f20
commit
92a291cd41
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue