summaryrefslogtreecommitdiffstats
path: root/lib/libc/mips/sys/exect.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/mips/sys/exect.S')
-rw-r--r--lib/libc/mips/sys/exect.S11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/libc/mips/sys/exect.S b/lib/libc/mips/sys/exect.S
index 702015d..613d47c 100644
--- a/lib/libc/mips/sys/exect.S
+++ b/lib/libc/mips/sys/exect.S
@@ -41,16 +41,11 @@ __FBSDID("$FreeBSD$");
#endif /* LIBC_SCCS and not lint */
LEAF(exect)
-#ifdef __ABICALLS__
- .set noreorder
- .cpload t9
- .set reorder
-#endif
+ PIC_PROLOGUE(exect)
li v0, SYS_execve
syscall
bne a3, zero, 1f
- j ra
+ PIC_RETURN()
1:
- la t9, _C_LABEL(__cerror)
- jr t9
+ PIC_TAILCALL(__cerror)
END(exect)
OpenPOWER on IntegriCloud