Fix POSIX/x64 call argument order.

This commit is contained in:
Mike Pall 2009-12-28 21:32:15 +01:00
parent 7b7c6ed754
commit 07e1a0d138

View File

@ -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