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"
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