]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Fix POSIX/x64 call argument order.
authorMike Pall <mike>
Mon, 28 Dec 2009 20:32:15 +0000 (21:32 +0100)
committerMike Pall <mike>
Mon, 28 Dec 2009 20:32:15 +0000 (21:32 +0100)
src/buildvm_x86.dasc

index 84bfd50c55e15fb0a53060dc7908057b67c72144..0f0488be2df4c32e70a4387c8c961e2a97029980 100644 (file)
 |.define FCARG1,       CARG1d          // Upwards compatible to x86 fastcall.
 |.define FCARG2,       CARG2d
 |.else
-|.define CARG1,                rsi             // x64/POSIX C call arguments.
-|.define CARG2,                rdi
+|.define CARG1,                rdi             // x64/POSIX C call arguments.
+|.define CARG2,                rsi
 |.define CARG3,                rdx
 |.define CARG4,                rcx
 |.define CARG5,                r8
 |.define CARG6,                r9
-|.define CARG1d,       esi
-|.define CARG2d,       edi
+|.define CARG1d,       edi
+|.define CARG2d,       esi
 |.define CARG3d,       edx
 |.define CARG4d,       ecx
 |.define CARG5d,       r8d