310cd6abad9f81bc48a20c8d93491825c20f33f2
[tpg/acess2.git] / Usermode / Libraries / crt0.o_src / armv7-crti.S
1 .section .init
2 .global _init
3 .type _init, function
4 _init:
5 #ifdef __thumb__
6         .thumb
7         
8         push    {r3, r4, r5, r6, r7, lr}
9 #else
10         .arm
11         mov     ip, sp
12         stmdb   sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, ip, lr, pc}
13         sub     fp, ip, #4
14 #endif
15         /* gcc will nicely put the contents of crtbegin.o's .init section here. */
16
17 .section .fini
18 .global _fini
19 .type _fini, function
20 _fini:
21 #ifdef __thumb__
22         .thumb
23         
24         push    {r3, r4, r5, r6, r7, lr}
25 #else
26         .arm
27         mov     ip, sp
28         stmdb   sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, ip, lr, pc}
29         sub     fp, ip, #4
30 #endif
31         /* gcc will nicely put the contents of crtbegin.o's .fini section here. */

UCC git Repository :: git.ucc.asn.au