x86_64 vfork implementation

untested; should work.
This commit is contained in:
Rich Felker 2012-02-06 18:23:11 -05:00
parent ce4d97e3dc
commit 4cf667c9c9

View File

@ -0,0 +1,12 @@
.global __vfork
.weak vfork
.type __vfork,@function
.type vfork,@function
__vfork:
vfork:
pop %rdx
mov $58,%eax
syscall
push %rdx
mov %rax,%rdi
jmp __syscall_ret