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

    .extern AppStack
	.extern Cstart
	.global	start

    /* Set stack pointer to end of AppStack and jump to Cstart:
	 */
start:
	addi r1, r0, AppStack
	addi r1, r1, (APPSTACKSIZE-16)

jump_to_c:
    brai Cstart