Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d11e2126 authored by Shiraz Hashim's avatar Shiraz Hashim
Browse files

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: default avatarShiraz Hashim <shashim@codeaurora.org>
parent de35cab0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1652,6 +1652,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)