Fix the x86_64 vfork implementation.

Change-Id: I599507f5058e6196dc2d5b5653d06d5135dd8ac1
This commit is contained in:
Elliott Hughes
2013-10-18 18:21:11 -07:00
parent a5bab412e0
commit 9ea4d5f3a8
5 changed files with 50 additions and 20 deletions

View File

@@ -1,18 +0,0 @@
/* Generated by gensyscalls.py. Do not edit. */
#include <asm/unistd.h>
#include <linux/err.h>
#include <machine/asm.h>
ENTRY(vfork)
movl $__NR_vfork, %eax
syscall
cmpq $-MAX_ERRNO, %rax
jb 1f
negl %eax
movl %eax, %edi
call __set_errno
orq $-1, %rax
1:
ret
END(vfork)