projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce4d97e
)
x86_64 vfork implementation
author
Rich Felker
<dalias@aerifal.cx>
Mon, 6 Feb 2012 23:23:11 +0000
(18:23 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 6 Feb 2012 23:23:11 +0000
(18:23 -0500)
untested; should work.
src/process/x86_64/vfork.s
[new file with mode: 0644]
patch
|
blob
diff --git a/src/process/x86_64/vfork.s
b/src/process/x86_64/vfork.s
new file mode 100644
(file)
index 0000000..
27af46f
--- /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