Skip to content

Commit 1a3c42e

Browse files
committed
Build bootloader with -O2 flag
1 parent 348d42d commit 1a3c42e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bootloader/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ SPECS := specs
2323
#---------------------------------------------------------------------------------
2424
ARCH := -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)

bootloader/source/arm9clear.arm.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Modified by Chishm:
2424
void __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

0 commit comments

Comments
 (0)