summaryrefslogtreecommitdiffstats
path: root/apps/common/crt0_bfin.S
blob: 2cac2b97dd6e5a674081a437a20246afd07dffc3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "cfg.h"

.extern _AppStack
.extern _Cstart
.global start

.text

start:
/* Clear all DAG registers:
 */
R0 = 0
     I0 = R0
          I1 = R0
               I2 = R0
                    I3 = R0
                         L0 = R0
                              L1 = R0
                                   L2 = R0
                                        L3 = R0
                                                B0 = R0
                                                        B1 = R0
                                                                B2 = R0
                                                                        B3 = R0
                                                                                M0 = R0
                                                                                        M1 = R0
                                                                                                M2 = R0
                                                                                                        M3 = R0
                                                                                                                LC0 = R0;
LC1 = R0;

sp.h = _AppStack+(APPSTACKSIZE-32)
       sp.l = _AppStack+(APPSTACKSIZE-32)
              jump    _Cstart