FreeCalypso > hg > freecalypso-sw
comparison nuc-fw/sysglue/sysinit.S @ 80:39b1c369b67f
nuc-fw: links to an ELF image
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Fri, 16 Aug 2013 02:25:58 +0000 |
parents | 947b1f473960 |
children | 321f6a9ae989 |
comparison
equal
deleted
inserted
replaced
79:947b1f473960 | 80:39b1c369b67f |
---|---|
23 _FlashorXram_entry: | 23 _FlashorXram_entry: |
24 /* first order of business: copy iram.text to where it's supposed to be */ | 24 /* first order of business: copy iram.text to where it's supposed to be */ |
25 ldr r8, =__iramtext_flash_addr | 25 ldr r8, =__iramtext_flash_addr |
26 ldr r9, =__iramtext_ram_addr | 26 ldr r9, =__iramtext_ram_addr |
27 ldr r10, =__iramtext_size | 27 ldr r10, =__iramtext_size |
28 1: ldm r8!, {r0-r7} | 28 1: ldmia r8!, {r0-r7} |
29 stm r9!, {r0-r7} | 29 stmia r9!, {r0-r7} |
30 subs r10, r10, #0x20 | 30 subs r10, r10, #0x20 |
31 bhi 1b | 31 bhi 1b |
32 /* now we can call any function w/o worry as to where it lives */ | 32 /* now we can call any function w/o worry as to where it lives */ |
33 /* clear int.bss and ext.bss, using bzero() from libc */ | 33 /* clear int.bss and ext.bss, using bzero() from libc */ |
34 ldr r0, =__intbss_start | 34 ldr r0, =__intbss_start |