android_kernel_samsung_univ.../arch/arm64/kernel
Ard Biesheuvel 73effccb91 arm64/efi: do not assume DRAM base is aligned to 2 MB
The current arm64 Image relocation code in the UEFI stub assumes that
the dram_base argument it receives is always a multiple of 2 MB. In
reality, it is simply the lowest start address of all RAM entries in
the UEFI memory map, which means it could be any multiple of 4 KB.

Since the arm64 kernel Image needs to reside TEXT_OFFSET bytes beyond
a 2 MB aligned base, or it will fail to boot, make sure we round dram_base
to 2 MB before using it to calculate the relocation address.

Fixes: e38457c361 ("arm64: efi: prefer AllocatePages() over efi_low_alloc() for vmlinux")
Reported-by: Timur Tabi <timur@codeaurora.org>
Tested-by: Timur Tabi <timur@codeaurora.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2015-10-29 16:10:58 +00:00
..
vdso
.gitignore
acpi.c
alternative.c
arm64ksyms.c
armv8_deprecated.c
asm-offsets.c
cacheinfo.c
cpu_errata.c
cpu_ops.c
cpufeature.c
cpuidle.c
cpuinfo.c
debug-monitors.c
efi-entry.S
efi-stub.c arm64/efi: do not assume DRAM base is aligned to 2 MB 2015-10-29 16:10:58 +00:00
efi.c
entry-fpsimd.S
entry-ftrace.S
entry.S
entry32.S
fpsimd.c
ftrace.c
head.S
hw_breakpoint.c
hyp-stub.S
image.h
insn.c
io.c
irq.c
jump_label.c
kgdb.c
kuser32.S
Makefile
module.c
pci.c
perf_callchain.c
perf_event.c
perf_regs.c
process.c
psci-call.S
psci.c
ptrace.c
return_address.c
setup.c
signal.c
signal32.c
sleep.S
smp_spin_table.c
smp.c
stacktrace.c Revert "ARM64: unwind: Fix PC calculation" 2015-10-28 17:07:07 +00:00
suspend.c
sys_compat.c
sys.c
sys32.c
time.c
topology.c
trace-events-emulation.h
traps.c
vdso.c
vmlinux.lds.S