diff options
author | peter <peter@FreeBSD.org> | 2003-04-30 18:13:48 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-04-30 18:13:48 +0000 |
commit | 2c555e9f247d864f0a77bcbeeca02d460e8e356f (patch) | |
tree | f179a77fc4c8dbe46ead193991bd558be276c602 /lib/libc/amd64 | |
parent | 44164f81780c996180a1b01c5723211d18661e28 (diff) | |
download | FreeBSD-src-2c555e9f247d864f0a77bcbeeca02d460e8e356f.zip FreeBSD-src-2c555e9f247d864f0a77bcbeeca02d460e8e356f.tar.gz |
Update for AMD64. Depend on %rdi (first syscall argument) being preserved
across a "syscall"-style syscall
Diffstat (limited to 'lib/libc/amd64')
-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 |