comparison target-utils/env/crt0.S @ 11:40f607bb0a2c

target-utils refactored
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Wed, 01 May 2013 07:39:35 +0000
parents loadagent/crt0.S@ddda170fa6f4
children
comparison
equal deleted inserted replaced
10:e2e80a09338e 11:40f607bb0a2c
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