arm64: Update dram end address while randomizing base

Update the physical end address of available RAM in calculation
used for randomizing the memory base address base.

Change-Id: Id32260d5c15ec4363ab62755238a10cc4dfaabe8
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
Sudarshan Rajagopalan 2018-07-19 17:29:05 -07:00 • committed by Isaac J. Manjarres
commit 1f5344a153

View file

@ -458,7 +458,7 @@ void __init arm64_memblock_init(void)
if (IS_ENABLED(CONFIG_RANDOMIZE_BASE)) {
extern u16 memstart_offset_seed;
u64 range = linear_region_size -
(memblock_end_of_DRAM() - memblock_start_of_DRAM());
(bootloader_memory_limit - memblock_start_of_DRAM());
/*
* If the size of the linear region exceeds, by a sufficient