diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/amd64/sys/pipe.S | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/amd64/sys/pipe.S b/lib/libc/amd64/sys/pipe.S index 99a7ff0..87bda41 100644 --- a/lib/libc/amd64/sys/pipe.S +++ b/lib/libc/amd64/sys/pipe.S @@ -43,8 +43,7 @@ __FBSDID("$FreeBSD$"); #include "SYS.h" SYSCALL(pipe) - movl 4(%esp),%ecx - movl %eax,(%ecx) - movl %edx,4(%ecx) - movl $0,%eax + movl %eax,(%rdi) /* %rdi is preserved by syscall */ + movl %edx,4(%rdi) + movq $0,%rax ret |