efi: x86: move efi_is_table_address() into arch/x86
The function efi_is_table_address() and the associated array of table pointers is specific to x86. Since we will be adding some more x86 specific tables, let's move this code out of the generic code first. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
This commit is contained in:
@@ -242,6 +242,7 @@ static inline bool efi_is_64bit(void)
|
||||
__efi_early()->runtime_services), __VA_ARGS__)
|
||||
|
||||
extern bool efi_reboot_required(void);
|
||||
extern bool efi_is_table_address(unsigned long phys_addr);
|
||||
|
||||
#else
|
||||
static inline void parse_efi_setup(u64 phys_addr, u32 data_len) {}
|
||||
@@ -249,6 +250,10 @@ static inline bool efi_reboot_required(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
static inline bool efi_is_table_address(unsigned long phys_addr)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif /* CONFIG_EFI */
|
||||
|
||||
#endif /* _ASM_X86_EFI_H */
|
||||
|
Reference in New Issue
Block a user