support vfork on i386
authorRich Felker <dalias@aerifal.cx>
Sat, 15 Oct 2011 03:56:31 +0000 (23:56 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 15 Oct 2011 03:56:31 +0000 (23:56 -0400)
src/process/i386/vfork.s [new file with mode: 0644]

diff --git a/src/process/i386/vfork.s b/src/process/i386/vfork.s
new file mode 100644 (file)
index 0000000..fadca20
--- /dev/null
@@ -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