comparison gsm-fw/sysglue/sysinit.S @ 632:02d14592bb73

ramImage build change: load iram.text directly into IRAM w/o wasting XRAM
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 01 Sep 2014 18:02:06 +0000
parents 7cf154cd3891
children
comparison
equal deleted inserted replaced
631:7cf154cd3891 632:02d14592bb73
10 10
11 .section xip.text,"ax",%progbits 11 .section xip.text,"ax",%progbits
12 .code 32 12 .code 32
13 .globl _FlashorXram_entry 13 .globl _FlashorXram_entry
14 _FlashorXram_entry: 14 _FlashorXram_entry:
15 /* first order of business: copy iram.text to where it's supposed to be */
16 ldr r8, =__iramtext_flash_addr
17 ldr r9, =__iramtext_ram_addr
18 ldr r10, =__iramtext_size
19 1: ldmia r8!, {r0-r7}
20 stmia r9!, {r0-r7}
21 subs r10, r10, #0x20
22 bhi 1b
23 /* enable Calypso boot ROM for the ARM exception and IRQ/FIQ vectors */ 15 /* enable Calypso boot ROM for the ARM exception and IRQ/FIQ vectors */
24 ldr r1, =0xFFFFFB10 16 ldr r1, =0xFFFFFB10
25 mov r2, #0x0100 17 mov r2, #0x0100
26 strh r2, [r1] 18 strh r2, [r1]
27 /* now we can call any function w/o worry as to where it lives */ 19 /* now we can call any function w/o worry as to where it lives */