FreeCalypso > hg > freecalypso-tools
comparison target-utils/env/crt0.S @ 0:e7502631a0f9
initial import from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 11 Jun 2016 00:13:35 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e7502631a0f9 |
---|---|
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 |