Skip to content

Commit 903b7cf

Browse files
softwareckicarlescufi
authored andcommitted
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 <[email protected]>
1 parent e4a9503 commit 903b7cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/mm/mm_drv_intel_adsp_mtl_tlb.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,10 @@ int sys_mm_drv_update_page_flags(void *virt, uint32_t flags)
461461

462462
tlb_entries[entry_idx] = entry;
463463

464+
#ifdef CONFIG_MMU
465+
arch_mem_map(virt, tlb_entry_to_pa(entry), CONFIG_MM_DRV_PAGE_SIZE, flags);
466+
#endif
467+
464468
out:
465469
k_spin_unlock(&tlb_lock, key);
466470
return ret;

0 commit comments

Comments
 (0)