diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-02-06 18:23:11 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-02-06 18:23:11 -0500 |
commit | 4cf667c9c90cdcf63233467cbed42a2dab5c35a9 (patch) | |
tree | 7326518b41e4eb4d9d9056e7406d387114eee419 /src/process | |
parent | ce4d97e3dc0aaec915f500bc1ef955208a5ef4c2 (diff) | |
download | musl-4cf667c9c90cdcf63233467cbed42a2dab5c35a9.tar.gz musl-4cf667c9c90cdcf63233467cbed42a2dab5c35a9.tar.xz musl-4cf667c9c90cdcf63233467cbed42a2dab5c35a9.zip |
x86_64 vfork implementation
untested; should work.
Diffstat (limited to 'src/process')
-rw-r--r-- | src/process/x86_64/vfork.s | 12 |
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 |