Skip to content

Commit

Permalink
Clear extra 16MB of RAM on 3DS before game boot
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Jan 12, 2025
1 parent bc110a6 commit 415403d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions retail/bootloaderi/source/arm7/main.arm7.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ static void resetMemory_ARM7(void) {
dma_twlFill32(0, 0, (u32*)0x02FFF000, 0xD60); // clear part of EWRAM
toncset32((u32*)0x02FFFDFC, 0, 1); // clear TWLCFG address
dma_twlFill32(0, 0, (u32*)0x02FFFE00, 0x200); // clear part of EWRAM: header
if (consoleModel > 0) {
dma_twlFill32(0, 0, (u32*)0x0D000000, 0x1000000); // clear extra RAM
}
REG_IE = 0;
REG_IF = ~0;
REG_AUXIE = 0;
Expand Down

0 comments on commit 415403d

Please sign in to comment.