mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix POSIX/x64 call argument order.
This commit is contained in:
parent
7b7c6ed754
commit
07e1a0d138
@ -66,14 +66,14 @@
|
|||||||
|.define FCARG1, CARG1d // Upwards compatible to x86 fastcall.
|
|.define FCARG1, CARG1d // Upwards compatible to x86 fastcall.
|
||||||
|.define FCARG2, CARG2d
|
|.define FCARG2, CARG2d
|
||||||
|.else
|
|.else
|
||||||
|.define CARG1, rsi // x64/POSIX C call arguments.
|
|.define CARG1, rdi // x64/POSIX C call arguments.
|
||||||
|.define CARG2, rdi
|
|.define CARG2, rsi
|
||||||
|.define CARG3, rdx
|
|.define CARG3, rdx
|
||||||
|.define CARG4, rcx
|
|.define CARG4, rcx
|
||||||
|.define CARG5, r8
|
|.define CARG5, r8
|
||||||
|.define CARG6, r9
|
|.define CARG6, r9
|
||||||
|.define CARG1d, esi
|
|.define CARG1d, edi
|
||||||
|.define CARG2d, edi
|
|.define CARG2d, esi
|
||||||
|.define CARG3d, edx
|
|.define CARG3d, edx
|
||||||
|.define CARG4d, ecx
|
|.define CARG4d, ecx
|
||||||
|.define CARG5d, r8d
|
|.define CARG5d, r8d
|
||||||
|
Loading…
Reference in New Issue
Block a user