• Ard Biesheuvel's avatar
    arm64: efi: always map runtime services code and data regions down to pages · bd264d04
    Ard Biesheuvel authored
    To avoid triggering diagnostics in the MMU code that are finicky about
    splitting block mappings into more granular mappings, ensure that regions
    that are likely to appear in the Memory Attributes table as well as the
    UEFI memory map are always mapped down to pages. This way, we can use
    apply_to_page_range() instead of create_pgd_mapping() for the second pass,
    which cannot split or merge block entries, and operates strictly on PTEs.
    
    Note that this aligns the arm64 Memory Attributes table handling code with
    the ARM code, which already uses apply_to_page_range() to set the strict
    permissions.
    Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
    Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
    bd264d04
efi.h 2.36 KB