summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/process/x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/process/x86_64')
-rw-r--r--libc-top-half/musl/src/process/x86_64/vfork.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/process/x86_64/vfork.s b/libc-top-half/musl/src/process/x86_64/vfork.s
new file mode 100644
index 0000000..9114439
--- /dev/null
+++ b/libc-top-half/musl/src/process/x86_64/vfork.s
@@ -0,0 +1,10 @@
+.global vfork
+.type vfork,@function
+vfork:
+ pop %rdx
+ mov $58,%eax
+ syscall
+ push %rdx
+ mov %rax,%rdi
+ .hidden __syscall_ret
+ jmp __syscall_ret