x86/efi: enable MS ABI attribute on clang
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 5 Mar 2021 14:30:23 +0000 (15:30 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 5 Mar 2021 14:30:23 +0000 (15:30 +0100)
commitc354bd746877591ad16ed80077ee367c9c98fa48
tree175d1f4e6771ad97d5c5354d52a938ee50c9c6d1
parent72fc75d707ed1ab4b12189aacfcc237f8578590d
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>
master commit: 92f5ffa58d188c9f9a9f1bcdccb6d6348d9df612
master date: 2021-02-04 14:02:32 +0100
xen/include/asm-x86/x86_64/efibind.h