mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
mmu: fix page invalidation on flag change
This commit is contained in:
@@ -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);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user