load cr3 in dispatcher

This commit is contained in:
2026-02-16 22:49:42 +01:00
parent ef534e2ac7
commit f0bda5f466
2 changed files with 5 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ void Thread::resume(Thread *next) {
.user = 1,
.address = (uintptr_t)&next->subtable>>12
};
load_cr3((void*)&paging_tree.l4);
context_switch(&next->context, &context);
}
@@ -88,6 +89,7 @@ void Thread::go() {
.user = 1,
.address = (uintptr_t)&subtable>>12
};
load_cr3((void*)&paging_tree.l4);
context_launch(&context);
}