about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/process/x86_64/vfork.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/process/x86_64/vfork.s b/src/process/x86_64/vfork.s
new file mode 100644
index 00000000..27af46f5
--- /dev/null
+++ b/src/process/x86_64/vfork.s
@@ -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