mirror of
https://github.com/partic2/libffi
synced 2026-11-11 02:27:19 +00:00
x86: Fix calling convention for ffi_closure_win64_inner
Also enable testing for the cross-abi calls.
This commit is contained in:
+5
-1
@@ -231,7 +231,11 @@ struct win64_closure_frame
|
||||
UINT64 args[];
|
||||
};
|
||||
|
||||
int FFI_HIDDEN
|
||||
/* Force the inner function to use the MS ABI. When compiling on win64
|
||||
this is a nop. When compiling on unix, this simplifies the assembly,
|
||||
and places the burden of saving the extra call-saved registers on
|
||||
the compiler. */
|
||||
int FFI_HIDDEN __attribute__((ms_abi))
|
||||
ffi_closure_win64_inner(ffi_cif *cif,
|
||||
void (*fun)(ffi_cif*, void*, void**, void*),
|
||||
void *user_data,
|
||||
|
||||
Reference in New Issue
Block a user