Update for AMD64. Depend on %rdi (first syscall argument) being preserved
across a "syscall"-style syscall
This commit is contained in:
parent
44164f8178
commit
2c555e9f24
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user