diff options
author | Shiraz Hashim <shashim@codeaurora.org> | 2015-06-30 09:14:46 +0530 |
---|---|---|
committer | Kyle Yan <kyan@codeaurora.org> | 2016-06-24 15:08:08 -0700 |
commit | 24edbd9fd473502abe34f7c14f138a3f1bc0d65f (patch) | |
tree | b3f619f046f4d746596f97fe5d48294dcf7f6a9b /arch/arm/mm | |
parent | 14c44670eaf9d8b0e0b34dcbc3ea96919eae9262 (diff) |
arm: mm: consider only lowmem regions while remap
Consider only those memory blocks with lowmem while
remapping into 4KB regions using CONFIG_FORCE_PAGES
feature.
Change-Id: Ie209fce6c310f911d8cf02d977e226660684a6ab
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/mmu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 74457c13db72..14bb5ac67588 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -1636,6 +1636,8 @@ static void __init remap_pages(void) bool fixup = false; unsigned long saved_start = addr; + if (phys_start > arm_lowmem_limit) + break; if (phys_end > arm_lowmem_limit) end = (unsigned long)__va(arm_lowmem_limit); if (phys_start >= phys_end) |