]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - lib/csu/mips/crti.S
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / lib / csu / mips / crti.S
1 #include <machine/asm.h>
2 __FBSDID("$FreeBSD$");
3
4         .section .init,"ax",%progbits
5         .align 4
6         .globl  _init
7         .type   _init,%function
8 _init:
9 #ifdef __ABICALLS__
10         .set   noreorder
11         .cpload $25
12         .set   reorder
13         subu    sp, sp, 32
14         .cprestore 16
15         sw      ra, 28(sp)
16
17 #else
18         subu    sp, sp, 32
19         sw      ra, 28(sp)
20 #endif
21
22         .section .fini,"ax",%progbits
23         .align 4
24         .globl  _fini
25         .type   _fini,%function
26 _fini:
27 #ifdef __ABICALLS__
28         .set   noreorder
29         .cpload $25
30         .set   reorder
31         subu    sp, sp, 32
32         .cprestore 16
33         sw      ra, 28(sp)
34 #else
35         subu    sp, sp, 32
36         sw      ra, 28(sp)
37 #endif