mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Bug fix
This commit is contained in:
parent
b494737acd
commit
ed4ffc1993
@ -38,7 +38,7 @@ CFLAGS += $(INCLUDE) -DARM9 -D_NO_BOOTSTUB_
|
|||||||
CXXFLAGS := $(CFLAGS) -fno-exceptions -std=gnu++11
|
CXXFLAGS := $(CFLAGS) -fno-exceptions -std=gnu++11
|
||||||
|
|
||||||
ASFLAGS := -g $(ARCH)
|
ASFLAGS := -g $(ARCH)
|
||||||
LDFLAGS = -specs=ds_arm9.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
|
LDFLAGS = -specs=../ds_arm9_hi.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# any extra libraries we wish to link with the project (order is important)
|
# any extra libraries we wish to link with the project (order is important)
|
||||||
|
|||||||
11
arm9/ds_arm9_hi.mem
Normal file
11
arm9/ds_arm9_hi.mem
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/*--------------------------------------------------------------------------------
|
||||||
|
This Source Code Form is subject to the terms of the Mozilla Public License,
|
||||||
|
v. 2.0. If a copy of the MPL was not distributed with this file, You can
|
||||||
|
obtain one at https://mozilla.org/MPL/2.0/.
|
||||||
|
--------------------------------------------------------------------------------*/
|
||||||
|
MEMORY {
|
||||||
|
ewram : ORIGIN = 0x02004000, LENGTH = 3M + 512K - 0x4000
|
||||||
|
dtcm : ORIGIN = 0x0b000000, LENGTH = 16K
|
||||||
|
vectors : ORIGIN = 0x01000000, LENGTH = 256
|
||||||
|
itcm : ORIGIN = 0x01000100, LENGTH = 32K - 256
|
||||||
|
}
|
||||||
8
arm9/ds_arm9_hi.specs
Normal file
8
arm9/ds_arm9_hi.specs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
%rename link old_link
|
||||||
|
|
||||||
|
*link:
|
||||||
|
%(old_link) -T ../ds_arm9_hi.mem%s -T ds_arm9.ld%s --gc-sections
|
||||||
|
|
||||||
|
*startfile:
|
||||||
|
ds_arm9_crt0%O%s crti%O%s crtbegin%O%s
|
||||||
|
|
||||||
@ -35,8 +35,8 @@ void __attribute__ ((long_call)) __attribute__((naked)) __attribute__((noreturn)
|
|||||||
|
|
||||||
VRAM_CR = (VRAM_CR & 0xffff0000) | 0x00008080 ;
|
VRAM_CR = (VRAM_CR & 0xffff0000) | 0x00008080 ;
|
||||||
|
|
||||||
u16 *mainregs = (u16*)0x04000000;
|
vu16 *mainregs = (vu16*)0x04000000;
|
||||||
u16 *subregs = (u16*)0x04001000;
|
vu16 *subregs = (vu16*)0x04001000;
|
||||||
|
|
||||||
for (i=0; i<43; i++) {
|
for (i=0; i<43; i++) {
|
||||||
mainregs[i] = 0;
|
mainregs[i] = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user