startup with rom reserved vars and patch tables
This commit is contained in:
parent
721173449c
commit
d76846385a
23
src/start.S
23
src/start.S
|
@ -43,6 +43,29 @@ _start: b main
|
||||||
ldr pc, _irq
|
ldr pc, _irq
|
||||||
ldr pc, _fiq
|
ldr pc, _fiq
|
||||||
|
|
||||||
|
/* these vectors are used for rom patching */
|
||||||
|
.org 0x20
|
||||||
|
_RPTV_0_START:
|
||||||
|
bx lr /* do nothing */
|
||||||
|
|
||||||
|
.org 0x60
|
||||||
|
_RPTV_1_START:
|
||||||
|
bx lr /* do nothing */
|
||||||
|
|
||||||
|
.org 0xa0
|
||||||
|
_RPTV_2_START:
|
||||||
|
bx lr /* do nothing */
|
||||||
|
|
||||||
|
.org 0xe0
|
||||||
|
_RPTV_3_START:
|
||||||
|
bx lr /* do nothing */
|
||||||
|
|
||||||
|
.org 0x120
|
||||||
|
ROM_var_start: .word 0
|
||||||
|
.org 0x7ff
|
||||||
|
ROM_var_end: .word 0
|
||||||
|
|
||||||
|
|
||||||
_undefined_instruction: .word undefined_instruction
|
_undefined_instruction: .word undefined_instruction
|
||||||
_software_interrupt: .word software_interrupt
|
_software_interrupt: .word software_interrupt
|
||||||
_prefetch_abort: .word prefetch_abort
|
_prefetch_abort: .word prefetch_abort
|
||||||
|
|
Loading…
Reference in a new issue