FreeCalypso > hg > freecalypso-sw
comparison target-utils/compalstage/compalstage.S @ 314:48c08499cede
compalstage binaries built
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Wed, 02 Apr 2014 08:02:14 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
313:9df7f9c72e17 | 314:48c08499cede |
---|---|
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 |