diff options
Diffstat (limited to 'lib/csu/mips/crtn.S')
-rw-r--r-- | lib/csu/mips/crtn.S | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/csu/mips/crtn.S b/lib/csu/mips/crtn.S new file mode 100644 index 0000000..8d190f8 --- /dev/null +++ b/lib/csu/mips/crtn.S @@ -0,0 +1,24 @@ +#include <machine/asm.h> +__FBSDID("$FreeBSD$"); + + .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 |