Skip to content

Commit d11859c

Browse files
committed
B4DS: Clear 8MB RAM test flag
1 parent cd5ab31 commit d11859c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

retail/bootloader/source/arm9/main.arm9.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Modified by Chishm:
138138
--------------------------------------------------------------------------*/
139139
void arm9_main(void) {
140140
register int i;
141-
141+
142142
// Set shared ram to ARM7
143143
WRAM_CR = 0x03;
144144
REG_EXMEMCNT = 0xE880;
@@ -214,6 +214,7 @@ void arm9_main(void) {
214214
dmaFill9(0, VRAM_A, 0x20000*3); // Banks A, B, C
215215
dmaFill9(0, VRAM_D, 272*1024); // Banks D (excluded), E, F, G, H, I
216216

217+
*(vu32*)(0x02000000) = 0;
217218
memset_addrs_arm9(0x02000620, 0x02084000); // clear part of EWRAM
218219
memset_addrs_arm9(0x02280000, IMAGES_LOCATION); // clear part of EWRAM - except before nds-bootstrap images
219220
if (extendedMemory) {

0 commit comments

Comments
 (0)