File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ SPECS := specs
2323# ---------------------------------------------------------------------------------
2424ARCH := -mthumb -mthumb-interwork
2525
26- CFLAGS := -g -Wall -Os \
26+ CFLAGS := -g -Wall -O2 \
2727 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer\
2828 -ffast-math \
2929 $(ARCH )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Modified by Chishm:
2424void __attribute__ ((long_call )) __attribute__((naked )) __attribute__((noreturn )) resetMemory2_ARM9 (void )
2525{
2626 register int i , reg ;
27-
27+
2828 //clear out ARM9 DMA channels
2929 for (i = 0 ; i < 4 ; i ++ ) {
3030 DMA_CR (i ) = 0 ;
@@ -41,15 +41,15 @@ void __attribute__ ((long_call)) __attribute__((naked)) __attribute__((noreturn)
4141 REG_IPC_FIFO_CR = 0 ;
4242
4343 VRAM_CR = (VRAM_CR & 0xffff0000 ) | 0x00008080 ;
44-
44+
4545 vu16 * mainregs = (vu16 * )0x04000000 ;
4646 vu16 * subregs = (vu16 * )0x04001000 ;
47-
47+
4848 for (i = 0 ; i < 43 ; i ++ ) {
4949 mainregs [i ] = 0 ;
5050 subregs [i ] = 0 ;
5151 }
52-
52+
5353 REG_DISPSTAT = 0 ;
5454 GFX_STATUS = 0 ;
5555
You can’t perform that action at this time.
0 commit comments