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

Commit 1a493b8f authored by Liam Mark's avatar Liam Mark
Browse files

arm64: mm: preserve 4k mappings for late mappings



There are several features such as CONFIG_FREE_PAGES_RDONLY
which depend on pages being mapped as 4k.
When we creating late mappings ensure that 4K mappings
aren't replaced with block mappings if CONFIG_FORCE_PAGES
is enabled.

Change-Id: I9f1853c71ba6dec92ede869b90e220d63af6ae3e
Signed-off-by: default avatarLiam Mark <lmark@codeaurora.org>
parent 8ca03863
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -540,7 +540,8 @@ static void create_mapping_late(phys_addr_t phys, unsigned long virt,
	}

	return __create_mapping(&init_mm, pgd_offset_k(virt & PAGE_MASK),
				phys, virt, size, prot, late_alloc, false);
				phys, virt, size, prot, late_alloc,
				IS_ENABLED(CONFIG_FORCE_PAGES));
}

#ifdef CONFIG_DEBUG_RODATA