summaryrefslogtreecommitdiff
path: root/libstd/syscall+linux-x64.s
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-03-26 22:06:47 -0700
committerOri Bernstein <ori@eigenstate.org>2015-03-26 22:46:57 -0700
commit63780713d12f169f36b758d1b4cc7a1dc60f459e (patch)
treedb54651cc5959ed9defde686daaa36aeaf409521 /libstd/syscall+linux-x64.s
parent2fecc0b35b964469479c81cab2ebf5359f2bab89 (diff)
downloadmc-63780713d12f169f36b758d1b4cc7a1dc60f459e.tar.gz
Generate type descriptions for valists.
the formatting test is still broken, but everything else seems to be working.
Diffstat (limited to 'libstd/syscall+linux-x64.s')
-rw-r--r--libstd/syscall+linux-x64.s13
1 files changed, 7 insertions, 6 deletions
diff --git a/libstd/syscall+linux-x64.s b/libstd/syscall+linux-x64.s
index 7e639eb..d1a3086 100644
--- a/libstd/syscall+linux-x64.s
+++ b/libstd/syscall+linux-x64.s
@@ -9,6 +9,7 @@ sys$syscall:
pushq %r9
pushq %rcx
pushq %r11
+
/*
hack: We load 6 args regardless of
how many we actually have. This may
@@ -17,12 +18,12 @@ sys$syscall:
harmless.
*/
movq 80 (%rsp),%rax
- movq 88 (%rsp),%rdi
- movq 96 (%rsp),%rsi
- movq 104(%rsp),%rdx
- movq 112(%rsp),%r10
- movq 120(%rsp),%r8
- movq 128(%rsp),%r9
+ movq 96 (%rsp),%rdi
+ movq 104(%rsp),%rsi
+ movq 112(%rsp),%rdx
+ movq 120(%rsp),%r10
+ movq 128(%rsp),%r8
+ movq 136(%rsp),%r9
syscall