summaryrefslogtreecommitdiffstats
path: root/lib/libc/amd64/sys/exect.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/amd64/sys/exect.S')
-rw-r--r--lib/libc/amd64/sys/exect.S13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/libc/amd64/sys/exect.S b/lib/libc/amd64/sys/exect.S
index 5848e61..180a309 100644
--- a/lib/libc/amd64/sys/exect.S
+++ b/lib/libc/amd64/sys/exect.S
@@ -44,12 +44,11 @@ __FBSDID("$FreeBSD$");
#include <machine/psl.h>
ENTRY(exect)
- mov $SYS_execve,%eax
- pushf
- popl %edx
- orl $ PSL_T,%edx
- pushl %edx
- popf
+ movq $SYS_execve,%rax
+ pushfq
+ popq %r8
+ orq $PSL_T,%r8
+ pushq %r8
+ popfq
KERNCALL
- PIC_PROLOGUE
jmp PIC_PLT(HIDENAME(cerror)) /* exect(file, argv, env); */
OpenPOWER on IntegriCloud