summaryrefslogtreecommitdiffstats
path: root/apps/common/crt0_arm.S
blob: 58a23bffb8375d1c6096b47cbfbdef01a1f262bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "cfg.h"

.extern AppStack
.extern Cstart
.global start

/* Set stack pointer to end of AppStack and jump to Cstart:
 */
start:
ldr sp, =(AppStack + APPSTACKSIZE - 4)

         jump_to_c:
         bl Cstart