mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
x86_64 vfork implementation
untested; should work.
This commit is contained in:
parent
ce4d97e3dc
commit
4cf667c9c9
1 changed files with 12 additions and 0 deletions
12
src/process/x86_64/vfork.s
Normal file
12
src/process/x86_64/vfork.s
Normal 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
|
Loading…
Add table
Reference in a new issue