about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/process/i386/vfork.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/process/i386/vfork.s b/src/process/i386/vfork.s
new file mode 100644
index 00000000..fadca207
--- /dev/null
+++ b/src/process/i386/vfork.s
@@ -0,0 +1,14 @@
+.global __vfork
+.weak vfork
+.type __vfork,@function
+.type vfork,@function
+__vfork:
+vfork:
+	pop %edx
+	mov $190,%eax
+	int $128
+	push %edx
+	push %eax
+	call __syscall_ret
+	pop %edx
+	ret