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:
parent
e4a9503706
commit
903b7cf9b6
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue