aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2009-12-28 21:32:15 +0100
committerMike Pall <mike>2009-12-28 21:32:15 +0100
commit07e1a0d13852bcf51f9056a67ac87cc70467332c (patch)
tree98f69532df88dd42da9e684c9de82661a95c6d57 /src
parent7b7c6ed754e5fc9f9a76da7c7d06d311d66cbd79 (diff)
downloadluajit-07e1a0d13852bcf51f9056a67ac87cc70467332c.tar.gz
luajit-07e1a0d13852bcf51f9056a67ac87cc70467332c.tar.bz2
luajit-07e1a0d13852bcf51f9056a67ac87cc70467332c.zip
Fix POSIX/x64 call argument order.
Diffstat (limited to 'src')
-rw-r--r--src/buildvm_x86.dasc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buildvm_x86.dasc b/src/buildvm_x86.dasc
index 84bfd50c..0f0488be 100644
--- a/src/buildvm_x86.dasc
+++ b/src/buildvm_x86.dasc
@@ -66,14 +66,14 @@
66|.define FCARG1, CARG1d // Upwards compatible to x86 fastcall. 66|.define FCARG1, CARG1d // Upwards compatible to x86 fastcall.
67|.define FCARG2, CARG2d 67|.define FCARG2, CARG2d
68|.else 68|.else
69|.define CARG1, rsi // x64/POSIX C call arguments. 69|.define CARG1, rdi // x64/POSIX C call arguments.
70|.define CARG2, rdi 70|.define CARG2, rsi
71|.define CARG3, rdx 71|.define CARG3, rdx
72|.define CARG4, rcx 72|.define CARG4, rcx
73|.define CARG5, r8 73|.define CARG5, r8
74|.define CARG6, r9 74|.define CARG6, r9
75|.define CARG1d, esi 75|.define CARG1d, edi
76|.define CARG2d, edi 76|.define CARG2d, esi
77|.define CARG3d, edx 77|.define CARG3d, edx
78|.define CARG4d, ecx 78|.define CARG4d, ecx
79|.define CARG5d, r8d 79|.define CARG5d, r8d