summaryrefslogtreecommitdiff
path: root/src/thread/x32/clone.s
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2014-01-07 22:53:38 +0100
committerrofl0r <retnyg@gmx.net>2014-02-23 11:09:16 +0100
commit664cd341921007cea52c8891f27ce35927dca378 (patch)
treeb6aa7594609a40616db8458f879dfdb0dddf4b7c /src/thread/x32/clone.s
parent323272db175204b951f119dae4bd99ef05e20f13 (diff)
downloadmusl-664cd341921007cea52c8891f27ce35927dca378.tar.gz
x32 port (diff against vanilla x86_64)
Diffstat (limited to 'src/thread/x32/clone.s')
-rw-r--r--src/thread/x32/clone.s6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/thread/x32/clone.s b/src/thread/x32/clone.s
index ee59903a..eed46151 100644
--- a/src/thread/x32/clone.s
+++ b/src/thread/x32/clone.s
@@ -2,8 +2,7 @@
.global __clone
.type __clone,@function
__clone:
- xor %eax,%eax
- mov $56,%al
+ movl $0x40000038,%eax /* SYS_clone */
mov %rdi,%r11
mov %rdx,%rdi
mov %r8,%rdx
@@ -20,8 +19,7 @@ __clone:
pop %rdi
call *%r9
mov %eax,%edi
- xor %eax,%eax
- mov $60,%al
+ movl $0x4000003c,%eax /* SYS_exit */
syscall
hlt
1: ret