mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-06-18 10:55:31 -04:00
Build bootloader with -O2
flag
This commit is contained in:
parent
348d42d0a0
commit
1a3c42e9a4
@ -23,7 +23,7 @@ SPECS := specs
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
ARCH := -mthumb -mthumb-interwork
|
ARCH := -mthumb -mthumb-interwork
|
||||||
|
|
||||||
CFLAGS := -g -Wall -Os\
|
CFLAGS := -g -Wall -O2\
|
||||||
-mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer\
|
-mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer\
|
||||||
-ffast-math \
|
-ffast-math \
|
||||||
$(ARCH)
|
$(ARCH)
|
||||||
|
@ -24,7 +24,7 @@ Modified by Chishm:
|
|||||||
void __attribute__ ((long_call)) __attribute__((naked)) __attribute__((noreturn)) resetMemory2_ARM9 (void)
|
void __attribute__ ((long_call)) __attribute__((naked)) __attribute__((noreturn)) resetMemory2_ARM9 (void)
|
||||||
{
|
{
|
||||||
register int i, reg;
|
register int i, reg;
|
||||||
|
|
||||||
//clear out ARM9 DMA channels
|
//clear out ARM9 DMA channels
|
||||||
for (i=0; i<4; i++) {
|
for (i=0; i<4; i++) {
|
||||||
DMA_CR(i) = 0;
|
DMA_CR(i) = 0;
|
||||||
@ -41,15 +41,15 @@ void __attribute__ ((long_call)) __attribute__((naked)) __attribute__((noreturn)
|
|||||||
REG_IPC_FIFO_CR = 0;
|
REG_IPC_FIFO_CR = 0;
|
||||||
|
|
||||||
VRAM_CR = (VRAM_CR & 0xffff0000) | 0x00008080 ;
|
VRAM_CR = (VRAM_CR & 0xffff0000) | 0x00008080 ;
|
||||||
|
|
||||||
vu16 *mainregs = (vu16*)0x04000000;
|
vu16 *mainregs = (vu16*)0x04000000;
|
||||||
vu16 *subregs = (vu16*)0x04001000;
|
vu16 *subregs = (vu16*)0x04001000;
|
||||||
|
|
||||||
for (i=0; i<43; i++) {
|
for (i=0; i<43; i++) {
|
||||||
mainregs[i] = 0;
|
mainregs[i] = 0;
|
||||||
subregs[i] = 0;
|
subregs[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
REG_DISPSTAT = 0;
|
REG_DISPSTAT = 0;
|
||||||
GFX_STATUS = 0;
|
GFX_STATUS = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user