FreeCalypso > hg > freecalypso-citrine
comparison sysglue/sysinit.S @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
1 /* | |
2 * This assembly module, which puts bits of code into several different | |
3 * sections, contains those essential entry point etc bits which are common | |
4 * to both the regular flashable build and the fc-xram development build. | |
5 */ | |
6 | |
7 .section iram.vectors,"ax",%progbits | |
8 .code 32 | |
9 #include "vectors.S" | |
10 | |
11 .section xip.text,"ax",%progbits | |
12 .code 32 | |
13 .globl _FlashorXram_entry | |
14 _FlashorXram_entry: | |
15 /* enable Calypso boot ROM for the ARM exception and IRQ/FIQ vectors */ | |
16 ldr r1, =0xFFFFFB10 | |
17 mov r2, #0x0100 | |
18 strh r2, [r1] | |
19 /* now we can call any function w/o worry as to where it lives */ | |
20 /* clear int.bss and ext.bss, using bzero() from libc */ | |
21 ldr r0, =__intbss_start | |
22 ldr r1, =__intbss_size | |
23 bl bzero | |
24 ldr r0, =__extbss_start | |
25 ldr r1, =__extbss_size | |
26 bl bzero | |
27 /* we can start Nucleus now! */ | |
28 b INT_Initialize | |
29 | |
30 /* | |
31 * riviera/support/exception.c references exit() | |
32 * The following kludge will allow us to pass the link for the time being | |
33 * until we can find a better solution, such as hooking into DAR maybe. | |
34 */ | |
35 | |
36 .globl exit | |
37 exit: | |
38 b . |