mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
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:
parent
42be955907
commit
1f5344a153
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue