• Matt Fleming's avatar
    ia64/efi: Implement efi_enabled() · 09206380
    Matt Fleming authored
    There's no good reason to keep efi_enabled() under CONFIG_X86 anymore,
    since nothing about the implementation is specific to x86.
    
    Set EFI feature flags in the ia64 boot path instead of claiming to
    support all features. The old behaviour was actually buggy since
    efi.memmap never points to a valid memory map, so we shouldn't be
    claiming to support EFI_MEMMAP.
    
    Fortunately, this bug was never triggered because EFI_MEMMAP isn't used
    outside of arch/x86 currently, but that may not always be the case.
    Reviewed-and-tested-by: default avatarTony Luck <tony.luck@intel.com>
    Signed-off-by: default avatarMatt Fleming <matt.fleming@intel.com>
    09206380
efi.c 35.1 KB