Skip to content

Commit

Permalink
fix new3ds clocking when booting from fb3ds (untested)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Wolfvak committed Jun 24, 2021
1 parent 4098b02 commit 7dcf5ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arm11/source/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ static void wait_cycles(unsigned short cycles)

static void set_clock(short socmode)
{
if (get_pdn_lgr_socmode() == socmode)
return;

set_pdn_lgr_socmode(socmode);

// Loop until the ACK bit is set.
Expand Down

0 comments on commit 7dcf5ec

Please sign in to comment.