vram code needs to set dsimode flag too

This commit is contained in:
Dave Murphy 2017-09-13 00:54:24 +01:00
parent 440d1749e4
commit 44e7b8a0d0
2 changed files with 4 additions and 3 deletions

View File

@ -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__

View File

@ -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(.);