x86/efi: enable MS ABI attribute on clang
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 4 Feb 2021 13:02:32 +0000 (14:02 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 4 Feb 2021 13:02:32 +0000 (14:02 +0100)
commit92f5ffa58d188c9f9a9f1bcdccb6d6348d9df612
tree0496d2c79be549d994880c5249ea5b05d752c578
parentda20c93108226cb2eb2ed1a13225337f2318a642
x86/efi: enable MS ABI attribute on clang

Or else the EFI service calls will use the wrong calling convention.

The __ms_abi__ attribute is available on all supported versions of
clang. Add a specific Clang check because the GCC version reported by
Clang is below the required 4.4 to use the __ms_abi__ attribute.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Ian Jackson <iwj@xenproject.org>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
xen/include/asm-x86/x86_64/efibind.h