mirror of
https://git.musl-libc.org/git/musl
synced 2025-03-15 15:12:58 +03:00
x86_64 vfork implementation
untested; should work.
This commit is contained in:
parent
ce4d97e3dc
commit
4cf667c9c9
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…
x
Reference in New Issue
Block a user