summaryrefslogtreecommitdiff
path: root/lib/libc/mips/sys/exect.S
diff options
context:
space:
mode:
authorJayachandran C. <jchandra@FreeBSD.org>2010-11-27 12:26:40 +0000
committerJayachandran C. <jchandra@FreeBSD.org>2010-11-27 12:26:40 +0000
commit43f6e368b0a5523c2727da0b0248172b488b758e (patch)
treefd7cffbdc745cef2675b66c7c0b61767483a2475 /lib/libc/mips/sys/exect.S
parent30409a7564cd898dd84a0f5835cf3931705d01c0 (diff)
Notes
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 702015d96ed3..613d47c5d6d5 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)