efi/libstub: Annotate firmware routines as __efiapi
Annotate all the firmware routines (boot services, runtime services and protocol methods) called in the boot context as __efiapi, and make it expand to __attribute__((ms_abi)) on 64-bit x86. This allows us to use the compiler to generate the calls into firmware that use the MS calling convention instead of the SysV one. Signed-off-by:Ard Biesheuvel <ardb@kernel.org> Cc: Arvind Sankar <nivedita@alum.mit.edu> Cc: Borislav Petkov <bp@alien8.de> Cc: James Morse <james.morse@arm.com> Cc: Matt Fleming <matt@codeblueprint.co.uk> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-efi@vger.kernel.org Link: https://lkml.kernel.org/r/20191224151025.32482-13-ardb@kernel.org Signed-off-by:
Ingo Molnar <mingo@kernel.org>
Showing
- arch/x86/Kconfig 6 additions, 5 deletionsarch/x86/Kconfig
- arch/x86/boot/compressed/eboot.h 2 additions, 2 deletionsarch/x86/boot/compressed/eboot.h
- drivers/firmware/efi/libstub/random.c 6 additions, 4 deletionsdrivers/firmware/efi/libstub/random.c
- include/linux/efi.h 82 additions, 65 deletionsinclude/linux/efi.h
Loading
Please register or sign in to comment