mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 04:35:46 +00:00
core: Move PageTable struct into Common.
This commit is contained in:
parent
2392e146b0
commit
93da8e0abf
16 changed files with 215 additions and 171 deletions
|
@ -96,7 +96,7 @@ void Scheduler::SwitchContext(Thread* new_thread) {
|
|||
auto* const thread_owner_process = current_thread->GetOwnerProcess();
|
||||
if (previous_process != thread_owner_process) {
|
||||
system.Kernel().MakeCurrentProcess(thread_owner_process);
|
||||
SetCurrentPageTable(&thread_owner_process->VMManager().page_table);
|
||||
Memory::SetCurrentPageTable(&thread_owner_process->VMManager().page_table);
|
||||
}
|
||||
|
||||
cpu_core.LoadContext(new_thread->GetContext());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue