load cr3 in dispatcher
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user