From dd1e256440f19e74ab5a6591c0e4e14fce73a50b Mon Sep 17 00:00:00 2001 From: Shiraz Hashim Date: Tue, 30 Jun 2015 09:14:46 +0530 Subject: [PATCH] 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 Signed-off-by: Charan Teja Reddy Signed-off-by: Vijayanand Jitta Signed-off-by: Qingqing Zhou --- arch/arm/mm/mmu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 1f2c17143f2e..5c3ab53fb8e2 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -1669,6 +1669,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)