Support the WIN64/EFI64 calling convention on all X86_64 platforms
authorJosh Triplett <josh@joshtriplett.org>
Sun, 26 Jul 2015 23:27:34 +0000 (16:27 -0700)
committerJosh Triplett <josh@joshtriplett.org>
Mon, 27 Jul 2015 00:18:16 +0000 (17:18 -0700)
commit1f6b5a91f417ac77d2fe9b0b3eb66293db132e2e
tree33cdf2d8850294de38b17a3fb0c04c86fb851cc5
parent6de51f3e04e496901ea1bd8f9b44f75c9f01b599
Support the WIN64/EFI64 calling convention on all X86_64 platforms

Add a new calling convention FFI_EFI64, alias FFI_WIN64, on all X86_64
platforms.  This allows libffi compiled on a 64-bit x86 platform to call
EFI functions.

Compile in ffiw64.c and win64.S on all X86_64 platforms.  When compiled
for a platform other than X86_WIN64, ffiw64.c suffixes its functions
with _efi64, to avoid conflict with the platform's actual
implementations of those functions.
configure.host
src/x86/ffi64.c
src/x86/ffitarget.h
src/x86/ffiw64.c