]> git.baikalelectronics.ru Git - kernel.git/commit
efi/arm64: add EFI_KIMG_ALIGN
authorMark Rutland <mark.rutland@arm.com>
Fri, 14 Jul 2017 14:54:36 +0000 (15:54 +0100)
committerMark Rutland <mark.rutland@arm.com>
Tue, 15 Aug 2017 17:35:32 +0000 (18:35 +0100)
commit87aa2e525f7af63f6fbbb962ef7c3feca012c897
tree92a1999396756a9b9c5c238de904989216e8fdc4
parent56edd71eb429922cc25aff3567841c16e234e5e0
efi/arm64: add EFI_KIMG_ALIGN

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: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Tested-by: Laura 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>
arch/arm64/include/asm/efi.h
drivers/firmware/efi/libstub/arm64-stub.c