aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/acpi.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2016-04-18 17:09:47 +0200
committerWill Deacon <will.deacon@arm.com>2016-04-26 12:23:28 +0100
commit08cdac619c81b3fa8cd73aeed2330ffe0a0b73ca (patch)
tree70f8acd4853280472d0fd02d5145997b0c9be886 /arch/arm64/kernel/acpi.c
parentarm64: don't map TEXT_OFFSET bytes below the kernel if we can avoid it (diff)
downloadlinux-dev-08cdac619c81b3fa8cd73aeed2330ffe0a0b73ca.tar.xz
linux-dev-08cdac619c81b3fa8cd73aeed2330ffe0a0b73ca.zip
arm64: relocatable: deal with physically misaligned kernel images
When booting a relocatable kernel image, there is no practical reason to refuse an image whose load address is not exactly TEXT_OFFSET bytes above a 2 MB aligned base address, as long as the physical and virtual misalignment with respect to the swapper block size are equal, and are both aligned to THREAD_SIZE. Since the virtual misalignment is under our control when we first enter the kernel proper, we can simply choose its value to be equal to the physical misalignment. So treat the misalignment of the physical load address as the initial KASLR offset, and fix up the remaining code to deal with that. Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/acpi.c')
0 files changed, 0 insertions, 0 deletions