mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
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:
committed by
Xiang Xiao
parent
0652cbf304
commit
8d635ed0bf
@@ -281,6 +281,10 @@ int up_addrenv_kmap_pages(void **pages, unsigned int npages, uintptr_t vaddr,
|
||||
|
||||
mask |= PTE_BLOCK_DESC_UXN;
|
||||
|
||||
/* Flags for normal memory region */
|
||||
|
||||
mask |= MMU_MT_NORMAL_FLAGS;
|
||||
|
||||
/* Let arm64_map_pages do the work */
|
||||
|
||||
return arm64_map_pages(addrenv, (uintptr_t *)pages, npages, vaddr, mask);
|
||||
|
||||
Reference in New Issue
Block a user