Skip to content

Commit

Permalink
Build bootloader with -O2 flag
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Mar 8, 2024
1 parent 348d42d commit 1a3c42e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bootloader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ SPECS := specs
#---------------------------------------------------------------------------------
ARCH := -mthumb -mthumb-interwork

CFLAGS := -g -Wall -Os\
CFLAGS := -g -Wall -O2\
-mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer\
-ffast-math \
$(ARCH)
Expand Down
8 changes: 4 additions & 4 deletions bootloader/source/arm9clear.arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Modified by Chishm:
void __attribute__ ((long_call)) __attribute__((naked)) __attribute__((noreturn)) resetMemory2_ARM9 (void)
{
register int i, reg;

//clear out ARM9 DMA channels
for (i=0; i<4; i++) {
DMA_CR(i) = 0;
Expand All @@ -41,15 +41,15 @@ void __attribute__ ((long_call)) __attribute__((naked)) __attribute__((noreturn)
REG_IPC_FIFO_CR = 0;

VRAM_CR = (VRAM_CR & 0xffff0000) | 0x00008080 ;

vu16 *mainregs = (vu16*)0x04000000;
vu16 *subregs = (vu16*)0x04001000;

for (i=0; i<43; i++) {
mainregs[i] = 0;
subregs[i] = 0;
}

REG_DISPSTAT = 0;
GFX_STATUS = 0;

Expand Down

0 comments on commit 1a3c42e

Please sign in to comment.