more init0 work

This commit is contained in:
Olaf Rempel 2008-02-29 23:58:38 +01:00
parent 192c3e132c
commit 6825dbb2f4
2 changed files with 14 additions and 4 deletions

View File

@ -31,11 +31,21 @@
.equ I_BIT, 0x80
.equ F_BIT, 0x40
.section .dummy
.section .text.dummy
.global _hwstart
.func _hwstart
_hwstart:
ldr pc, =0x13c000
ldr pc, [pc, #24] /* 0x00 Reset handler */
ldr pc, [pc, #24] /* 0x04 Undefined Instruction */
ldr pc, [pc, #20] /* 0x08 Software Interrupt */
ldr pc, [pc, #16] /* 0x0C Prefetch Abort */
ldr pc, [pc, #12] /* 0x10 Data Abort */
ldr pc, [pc, #8] /* 0x14 reserved */
ldr pc, [pc, #4] /* 0x18 IRQ */
ldr pc, [pc, #0] /* 0x1c FIQ */
.word InitReset + 0x13c000
.word 0x80000000
.endfunc

View File

@ -9,8 +9,8 @@ SECTIONS
{
. = ORIGIN(FLASH);
.dummy : {
*(.dummy)
.text.dummy : {
*(.text.dummy)
} >FLASH =0
. = ORIGIN(CODE);