Skip to content

Commit

Permalink
Use VRAM for pre-lockout firm tmp buffer (3MB max)
Browse files Browse the repository at this point in the history
  • Loading branch information
TuxSH committed Jun 2, 2017
1 parent bfebb2a commit a138cbc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions stage2/arm9/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,13 @@ static void loadFirm(bool isNand)
invokeArm11Function(WAIT_BOOTROM11_LOCKED);

firm = (Firm *)0x20001000;
maxFirmSize = 0x07FFF000;
maxFirmSize = 0x07FFF000; //around 127MB (although we don't enable ext FCRAM on N3DS, beware!)
}
else
{
firm = (Firm *)0x08080000;
maxFirmSize = 0x77000;
//Uncached area, shouldn't affect performance too much, though
firm = (Firm *)0x18000000;
maxFirmSize = 0x300000; //3MB
}

u32 calculatedFirmSize = checkFirmHeader(firmHeader, (u32)firm, isPreLockout);
Expand Down

0 comments on commit a138cbc

Please sign in to comment.