Skip to content

Commit 7dcf5ec

Browse files
committed
fix new3ds clocking when booting from fb3ds (untested)
previously when changing the clock to itself it'd never retrigger the irq and the loader would get stuck in a loop now, it just returns when trying to set to the current mode
1 parent 4098b02 commit 7dcf5ec

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

arm11/source/smp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ static void wait_cycles(unsigned short cycles)
3131

3232
static void set_clock(short socmode)
3333
{
34+
if (get_pdn_lgr_socmode() == socmode)
35+
return;
36+
3437
set_pdn_lgr_socmode(socmode);
3538

3639
// Loop until the ACK bit is set.

0 commit comments

Comments
 (0)