mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-23 04:41:12 +00:00
thermosphere: disable interrupts in debugPauseCores
This commit is contained in:
parent
1c707d9ded
commit
5eb2d79996
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