summaryrefslogtreecommitdiffstats
path: root/lib/csu/mips/crti.S
blob: 1a0d23e5a33b0a68eb34d06fd37d1eaa4f8999ba (plain)
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
35
36
37
#include <machine/asm.h>
__FBSDID("$FreeBSD$");

	.section .init,"ax",%progbits
	.align 4
	.globl	_init
	.type	_init,%function
_init:
#ifdef __ABICALLS__
	.set   noreorder
	.cpload $25
	.set   reorder
	subu	sp, sp, 32
	.cprestore 16
	sw	ra, 28(sp)

#else
	subu	sp, sp, 32
	sw	ra, 28(sp)
#endif

	.section .fini,"ax",%progbits
	.align 4
	.globl	_fini
	.type	_fini,%function
_fini:
#ifdef __ABICALLS__
	.set   noreorder
	.cpload $25
	.set   reorder
	subu	sp, sp, 32
	.cprestore 16
	sw	ra, 28(sp)
#else
	subu    sp, sp, 32
	sw	ra, 28(sp)
#endif
OpenPOWER on IntegriCloud