make it work without dummy

This commit is contained in:
Olaf Rempel 2008-03-01 16:36:45 +01:00
parent 6825dbb2f4
commit e3ed2ef4e7
2 changed files with 8 additions and 4 deletions

View File

@ -31,7 +31,7 @@
.equ I_BIT, 0x80
.equ F_BIT, 0x40
.section .text.dummy
.section .init
.global _hwstart
.func _hwstart
_hwstart:
@ -44,7 +44,7 @@ _hwstart:
ldr pc, [pc, #4] /* 0x18 IRQ */
ldr pc, [pc, #0] /* 0x1c FIQ */
.word InitReset + 0x13c000
.word _blrelocate /* + 0x13c000 */
.word 0x80000000
.endfunc
@ -52,6 +52,7 @@ _hwstart:
.section .init
.global _blrelocate
.func _blrelocate
_blrelocate:
msr CPSR_c, #ARM_MODE_SVC | I_BIT | F_BIT
/* Remap RAM to 0x00000000 */

View File

@ -1,18 +1,21 @@
MEMORY
{
/*
FLASH(rx) : ORIGIN = 0x00100000, LENGTH = 256k
CODE (rx) : ORIGIN = 0x0013c000, LENGTH = 16k
*/
CODE (rx) : ORIGIN = 0x00100000, LENGTH = 16k
DATA (rwx) : ORIGIN = 0x00000000, LENGTH = 64k
}
SECTIONS
{
/*
. = ORIGIN(FLASH);
.text.dummy : {
*(.text.dummy)
} >FLASH =0
*/
. = ORIGIN(CODE);
.init : {