- fixed bug where a N3DS without extra FCRAM enabled would get stuck on boot

This commit is contained in:
Wolfvak 2019-04-23 17:11:28 -03:00 committed by d0k3
parent ad9a9bd5a0
commit 46a5735f5c

View File

@ -40,12 +40,10 @@ static void SYS_EnableClkMult(void)
// as early as possible in the initialization chain // as early as possible in the initialization chain
if (SYS_IsNewConsole() && !SYS_ClkMultEnabled()) { if (SYS_IsNewConsole() && !SYS_ClkMultEnabled()) {
GIC_Enable(88, BIT(0), GIC_HIGHEST_PRIO, NULL); GIC_Enable(88, BIT(0), GIC_HIGHEST_PRIO, NULL);
ARM_EnableInterrupts();
*CFG11_MPCORE_CLKCNT = 0x8001; *CFG11_MPCORE_CLKCNT = 0x8001;
do { do {
ARM_WFI(); ARM_WFI();
} while(!(*CFG11_MPCORE_CLKCNT & 0x8000)); } while(!(*CFG11_MPCORE_CLKCNT & 0x8000));
ARM_DisableInterrupts();
GIC_Disable(88, BIT(0)); GIC_Disable(88, BIT(0));
} }
} }