FreeCalypso > hg > freecalypso-sw
comparison loadagent/crt0.S @ 2:ddda170fa6f4
loadagent.elf compiled and linked, no printf yet
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 29 Apr 2013 05:21:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1:da98dc08f575 | 2:ddda170fa6f4 |
---|---|
1 #include "halt.h" | |
2 | |
3 .text | |
4 .code 32 | |
5 .global _entry | |
6 _entry: | |
7 ldr sp, =stack_bottom | |
8 @ zero bss | |
9 ldr r0, =__bss_start | |
10 ldr r2, =__bss_end | |
11 sub r1, r2, r0 | |
12 bl bzero | |
13 @ C code entry | |
14 bl main | |
15 mov r0, #HALTCODE_MAINEXITED | |
16 .global _exit | |
17 _exit: nop | |
18 1: nop | |
19 b 1b |