mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
mmu: invalidate on flags change
This commit is contained in:
@@ -155,6 +155,8 @@ void arch_mmu_changeflags(arch_mmu_tableptr context, void* addr, size_t flags, s
|
||||
setpage(context, addr, mapping);
|
||||
addr += PAGE_SIZE;
|
||||
}
|
||||
|
||||
invalidate(addr);
|
||||
|
||||
}
|
||||
|
||||
@@ -163,8 +165,8 @@ int arch_mmu_map(arch_mmu_tableptr context, void* paddr, void* vaddr, size_t fla
|
||||
changeentry(&entry, paddr, flags);
|
||||
|
||||
int ret = setpage(context, vaddr, entry);
|
||||
|
||||
|
||||
|
||||
|
||||
return ret;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user