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

across a "syscall"-style syscall
This commit is contained in:
Peter Wemm 2003-04-30 18:13:48 +00:00
parent 173564016e
commit 0ffd54b17b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114311

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