Update for AMD64. Depend on %rdi (first syscall argument) being preserved

across a "syscall"-style syscall
This commit is contained in:
peter 2003-04-30 18:13:48 +00:00
parent 44164f8178
commit 2c555e9f24

View File

@ -43,8 +43,7 @@ __FBSDID("$FreeBSD$");
#include "SYS.h" #include "SYS.h"
SYSCALL(pipe) SYSCALL(pipe)
movl 4(%esp),%ecx movl %eax,(%rdi) /* %rdi is preserved by syscall */
movl %eax,(%ecx) movl %edx,4(%rdi)
movl %edx,4(%ecx) movq $0,%rax
movl $0,%eax
ret ret