1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/lib/csu/mips/crti.S
Oleksandr Tymoshenko 32d7197a6d Bring C runtime bits for FreeBSD/mips from p4 mips2-jnpr branch.
Approved by:	cognet (mentor)
2008-05-03 11:16:32 +00:00

38 lines
542 B
ArmAsm

#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