mm: tlb: Add a mmu support in update page flags function

Platforms that support mmu require memory page access flags to be set in
both tlb and mmu. Add mmu flag update in sys_mm_drv_update_page_flags
function.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
This commit is contained in:
Adrian Warecki 2024-10-30 16:26:02 +01:00 committed by Carles Cufí
parent e4a9503706
commit 903b7cf9b6

View file

@ -461,6 +461,10 @@ int sys_mm_drv_update_page_flags(void *virt, uint32_t flags)
tlb_entries[entry_idx] = entry;
#ifdef CONFIG_MMU
arch_mem_map(virt, tlb_entry_to_pa(entry), CONFIG_MM_DRV_PAGE_SIZE, flags);
#endif
out:
k_spin_unlock(&tlb_lock, key);
return ret;