mmu: fix page invalidation on flag change

This commit is contained in:
Matheus
2022-09-12 10:22:25 -03:00
parent c04fd71e1e
commit 4111cf8489
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -155,10 +155,10 @@ void arch_mmu_changeflags(arch_mmu_tableptr context, void* addr, size_t flags, s
mapping &= ~((uint64_t)1 << 63); mapping &= ~((uint64_t)1 << 63);
mapping |= flags; mapping |= flags;
setpage(context, addr, mapping); setpage(context, addr, mapping);
invalidate(addr);
addr += PAGE_SIZE; addr += PAGE_SIZE;
} }
invalidate(addr);
} }
-2
View File
@@ -422,8 +422,6 @@ void sched_runinit(){
timer_add(&arch_getcls()->schedreq, THREAD_QUANTUM, true); timer_add(&arch_getcls()->schedreq, THREAD_QUANTUM, true);
printf("Switching to init thread\n");
switch_thread(thread); switch_thread(thread);
__builtin_unreachable(); __builtin_unreachable();