freebsd-skq/lib/csu/mips/crtn.S
Alexander Kabaev 20d197f463 Make MIPS startup assembly files use neutral float ABI.
This allows these files to be used with hard and softfloat targets
with no special flags passed to the compiler.

Reviewed by: adrian, br, imp
Differential Revision:	https://reviews.freebsd.org/D8506
2016-11-16 03:21:49 +00:00

26 lines
565 B
ArmAsm

#include <machine/asm.h>
__FBSDID("$FreeBSD$");
.gnu_attribute 4, 0
.section .init,"ax",%progbits
.align 4
.set noreorder
#if defined(__ABICALLS__) && (defined(__mips_n32) || defined(__mips_n64))
REG_L gp, CALLFRAME_GP(sp)
#endif
REG_L ra, CALLFRAME_RA(sp)
jr ra
PTR_ADDU sp, sp, CALLFRAME_SIZ
.set reorder
.section .fini,"ax",%progbits
.align 4
.set noreorder
#if defined(__ABICALLS__) && (defined(__mips_n32) || defined(__mips_n64))
REG_L gp, CALLFRAME_GP(sp)
#endif
REG_L ra, CALLFRAME_RA(sp)
jr ra
PTR_ADDU sp, sp, CALLFRAME_SIZ
.set reorder