mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-04-18 00:21:01 -05:00
vram code needs to set dsimode flag too
This commit is contained in:
parent
440d1749e4
commit
44e7b8a0d0
|
|
@ -51,12 +51,12 @@ _start:
|
|||
sub r1, r1, r0
|
||||
bl ClearMem
|
||||
|
||||
#ifndef VRAM
|
||||
cmp r10, #1
|
||||
bne NotTWL
|
||||
ldr r1, =__dsimode @ set DSi mode flag
|
||||
strb r10, [r1]
|
||||
|
||||
#ifndef VRAM
|
||||
ldr r1, =0x02ffe1d8 @ Get ARM7i LMA from header
|
||||
ldr r1, [r1]
|
||||
ldr r2, =__arm7i_start__
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ SECTIONS
|
|||
|
||||
.text : /* ALIGN (4): */
|
||||
{
|
||||
*(.text .stub .text.* .gnu.linkonce.t.*)
|
||||
*(.text .stub .text.* .twl .gnu.linkonce.t.*)
|
||||
KEEP (*(.text.*personality*))
|
||||
/* .gnu.warning sections are handled specially by elf32.em. */
|
||||
*(.gnu.warning)
|
||||
|
|
@ -139,13 +139,14 @@ SECTIONS
|
|||
__arm7_end__ = .;
|
||||
|
||||
|
||||
.bss ALIGN(4) :
|
||||
.bss ALIGN(4) (NOLOAD) :
|
||||
{
|
||||
__bss_start = ABSOLUTE(.);
|
||||
__bss_start__ = ABSOLUTE(.);
|
||||
*(.dynbss)
|
||||
*(.gnu.linkonce.b*)
|
||||
*(.bss*)
|
||||
*(.twl_bss)
|
||||
*(COMMON)
|
||||
. = ALIGN(4); /* REQUIRED. LD is flaky without it. */
|
||||
__bss_end__ = ABSOLUTE(.);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user