diff options
author | Michael Brown <mcb30@ipxe.org> | 2020-10-16 15:02:46 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2020-10-16 15:16:00 +0100 |
commit | bcf858c56da382337eec4601f36db619a79a1d8e (patch) | |
tree | 8f755671662ee21c51e74ccad0aa2377db28de74 /src/include/ipxe/efi | |
parent | c504c1d6937a07b038ad21646eaec51f34684736 (diff) | |
download | ipxe-bcf858c56da382337eec4601f36db619a79a1d8e.zip ipxe-bcf858c56da382337eec4601f36db619a79a1d8e.tar.gz ipxe-bcf858c56da382337eec4601f36db619a79a1d8e.tar.bz2 |
[efi] Provide EFI_INTF_OP for EFI-only interface operations
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi')
-rw-r--r-- | src/include/ipxe/efi/efi.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/ipxe/efi/efi.h b/src/include/ipxe/efi/efi.h index 94925ba..62609b4 100644 --- a/src/include/ipxe/efi/efi.h +++ b/src/include/ipxe/efi/efi.h @@ -275,6 +275,13 @@ extern void dbg_efi_protocols ( EFI_HANDLE handle ); #define DBGCP_EFI_PROTOCOLS( ... ) \ DBGC_EFI_PROTOCOLS_IF ( PROFILE, ##__VA_ARGS__ ) +/* Allow for EFI-only interface operations */ +#ifdef PLATFORM_efi +#define EFI_INTF_OP INTF_OP +#else +#define EFI_INTF_OP UNUSED_INTF_OP +#endif + extern unsigned long __stack_chk_guard; extern unsigned long efi_stack_cookie ( EFI_HANDLE handle ); extern void __stack_chk_fail ( void ); |