2008-05-03 11:16:32 +00:00
|
|
|
#include <machine/asm.h>
|
|
|
|
__FBSDID("$FreeBSD$");
|
2010-03-03 21:59:23 +00:00
|
|
|
|
2017-08-30 19:19:31 +00:00
|
|
|
#ifndef __clang__
|
2016-11-16 03:21:49 +00:00
|
|
|
.gnu_attribute 4, 0
|
2017-08-30 19:19:31 +00:00
|
|
|
#endif
|
2008-05-03 11:16:32 +00:00
|
|
|
.section .init,"ax",%progbits
|
2010-03-03 21:59:23 +00:00
|
|
|
.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
|
2008-05-03 11:16:32 +00:00
|
|
|
|
|
|
|
.section .fini,"ax",%progbits
|
2010-03-03 21:59:23 +00:00
|
|
|
.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
|