1: /*
2: *----------------------------------------------------------------------
3: * T-Kernel 2.0 Software Package
4: *
5: * Copyright 2011 by Ken Sakamura.
6: * This software is distributed under the latest version of T-License 2.x.
7: *----------------------------------------------------------------------
8: *
9: * Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17.
10: * Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
11: *
12: *----------------------------------------------------------------------
13: */
14:
15: /*
16: * crt0.S
17: *
18: * C startup
19: *
20: * This is used commonly by process startup, manager startup, and driver startup.
21: * Hence common startup processing is done here, and control is passed to _C_startup.
22: *
23: * individual startup processing is done by individual _C_startup.
24: */
25:
26: #include <machine.h>
27:
28: #if _Csym == 0
29: #define START _start
30: #else
31: #define START start
32: #endif
33:
34: .text
35: .global START
36: .type START, function
37: .balign 4
38: START:
39: b _C_startup