summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-02-06 18:23:11 -0500
committerRich Felker <dalias@aerifal.cx>2012-02-06 18:23:11 -0500
commit4cf667c9c90cdcf63233467cbed42a2dab5c35a9 (patch)
tree7326518b41e4eb4d9d9056e7406d387114eee419
parentce4d97e3dc0aaec915f500bc1ef955208a5ef4c2 (diff)
downloadmusl-4cf667c9c90cdcf63233467cbed42a2dab5c35a9.tar.gz
x86_64 vfork implementation
untested; should work.
-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