comparison target-utils/compalstage/compalstage.S @ 0:e7502631a0f9

initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Jun 2016 00:13:35 +0000
parents
children 21eec7569eb8
comparison
equal deleted inserted replaced
-1:000000000000 0:e7502631a0f9
1 .text
2 .org 0
3
4 #if THUMB_ENTRY
5 .code 16
6 bx pc
7 nop
8 #endif
9 .code 32
10
11 /* delay loop like OsmocomBB does */
12 mov r1, #0xa0000
13 1: subs r1, r1, #1
14 bne 1b
15 /* enable the Calypso boot ROM */
16 ldr r1, reg_addr
17 mov r2, #0x0100
18 strh r2, [r1]
19 /* jump to it! */
20 mov pc, #0
21 reg_addr:
22 .word 0xFFFFFB10
23
24 #if PAD_TO_1003
25 .org 0x3be0
26 .ascii "1003"
27 #endif