arch/arm64/src/common/arm64_addrenv_pgmap.c: Add normal region flags to kernel page mappings

In up_addrenv_kmap_pages, the MMU_MT_NORMAL_FLAGS are needed for the MMU
mappings in order for the memory & caches to function normally

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen 2025-01-15 08:27:46 +02:00 committed by Xiang Xiao
parent 0652cbf304
commit 8d635ed0bf

View file

@ -281,6 +281,10 @@ int up_addrenv_kmap_pages(void **pages, unsigned int npages, uintptr_t vaddr,
mask |= PTE_BLOCK_DESC_UXN; mask |= PTE_BLOCK_DESC_UXN;
/* Flags for normal memory region */
mask |= MMU_MT_NORMAL_FLAGS;
/* Let arm64_map_pages do the work */ /* Let arm64_map_pages do the work */
return arm64_map_pages(addrenv, (uintptr_t *)pages, npages, vaddr, mask); return arm64_map_pages(addrenv, (uintptr_t *)pages, npages, vaddr, mask);