mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
efi: Clean up config_parse_tables()
config_parse_tables() is a jumble of pointer arithmetic, due to the fact that on x86, we may be dealing with firmware whose native word size differs from the kernel's. This is not a concern on other architectures, and doesn't quite justify the state of the code, so let's clean it up by adding a non-x86 code path, constifying statically allocated tables and replacing preprocessor conditionals with IS_ENABLED() checks. Tested-by: Tony Luck <tony.luck@intel.com> # arch/ia64 Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
parent
3a0701dc7f
commit
06c0bd9343
5 changed files with 31 additions and 33 deletions
|
@ -613,8 +613,9 @@ extern void __init efi_esrt_init(void);
|
|||
#else
|
||||
static inline void efi_esrt_init(void) { }
|
||||
#endif
|
||||
extern int efi_config_parse_tables(void *config_tables, int count, int sz,
|
||||
efi_config_table_type_t *arch_tables);
|
||||
extern int efi_config_parse_tables(const efi_config_table_t *config_tables,
|
||||
int count,
|
||||
const efi_config_table_type_t *arch_tables);
|
||||
extern int efi_systab_check_header(const efi_table_hdr_t *systab_hdr,
|
||||
int min_major_version);
|
||||
extern void efi_systab_report_header(const efi_table_hdr_t *systab_hdr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue