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:
parent
0652cbf304
commit
8d635ed0bf
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue