diff options
Diffstat (limited to 'lib/csu/mips/crti.S')
-rw-r--r-- | lib/csu/mips/crti.S | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/csu/mips/crti.S b/lib/csu/mips/crti.S new file mode 100644 index 0000000..1a0d23e --- /dev/null +++ b/lib/csu/mips/crti.S @@ -0,0 +1,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 |