diff options
author | Ingo Molnar <mingo@kernel.org> | 2014-11-16 12:48:53 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-11-16 12:48:53 +0300 |
commit | 595247f61f9840222a4dec4baefd66ad6d5b0d6a (patch) | |
tree | c5cd38244fdac8ba3c119038f1116b7a5829c0f5 /arch/x86/include/asm/efi.h | |
parent | 206c5f60a3d902bc4b56dab2de3e88de5eb06108 (diff) | |
parent | 8266e31ed0fedb7ee16ebc86e80468f7cc1bbb4e (diff) | |
download | linux-595247f61f9840222a4dec4baefd66ad6d5b0d6a.tar.xz |
Merge tag 'efi-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi into x86/efi
Pull EFI updates for v3.19 from Matt Fleming:
- Support module unload for efivarfs - Mathias Krause
- Another attempt at moving x86 to libstub taking advantage of the
__pure attribute - Ard Biesheuvel
- Add EFI runtime services section to ptdump - Mathias Krause
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/include/asm/efi.h')
-rw-r--r-- | arch/x86/include/asm/efi.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/x86/include/asm/efi.h b/arch/x86/include/asm/efi.h index 9b11757975d0..25bce45c6fc4 100644 --- a/arch/x86/include/asm/efi.h +++ b/arch/x86/include/asm/efi.h @@ -158,6 +158,30 @@ static inline efi_status_t efi_thunk_set_virtual_address_map( } #endif /* CONFIG_EFI_MIXED */ + +/* arch specific definitions used by the stub code */ + +struct efi_config { + u64 image_handle; + u64 table; + u64 allocate_pool; + u64 allocate_pages; + u64 get_memory_map; + u64 free_pool; + u64 free_pages; + u64 locate_handle; + u64 handle_protocol; + u64 exit_boot_services; + u64 text_output; + efi_status_t (*call)(unsigned long, ...); + bool is64; +} __packed; + +__pure const struct efi_config *__efi_early(void); + +#define efi_call_early(f, ...) \ + __efi_early()->call(__efi_early()->f, __VA_ARGS__); + extern bool efi_reboot_required(void); #else |