From 2c555e9f247d864f0a77bcbeeca02d460e8e356f Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 30 Apr 2003 18:13:48 +0000 Subject: Update for AMD64. Depend on %rdi (first syscall argument) being preserved across a "syscall"-style syscall --- lib/libc/amd64/sys/pipe.S | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib') 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 -- cgit v1.1