• Mark Rutland's avatar
    efi/arm64: add EFI_KIMG_ALIGN · 170976bc
    Mark Rutland authored
    The EFI stub is intimately coupled with the kernel, and takes advantage
    of this by relocating the kernel at a weaker alignment than the
    documented boot protocol mandates.
    
    However, it does so by assuming it can align the kernel to the segment
    alignment, and assumes that this is 64K. In subsequent patches, we'll
    have to consider other details to determine this de-facto alignment
    constraint.
    
    This patch adds a new EFI_KIMG_ALIGN definition that will track the
    kernel's de-facto alignment requirements. Subsequent patches will modify
    this as required.
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    Reviewed-by: default avatarWill Deacon <will.deacon@arm.com>
    Tested-by: default avatarLaura Abbott <labbott@redhat.com>
    Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: James Morse <james.morse@arm.com>
    Cc: Matt Fleming <matt@codeblueprint.co.uk>
    170976bc
arm64-stub.c 4.53 KB