cpu_core: Separate cpu_core and memory

This makes cpu_core and memory being completely independent components inside the system, having a simpler and more understandable initialization process
The thread which casues page table changes in memory will be responsible to notify the cpu_core too
This commit is contained in:
bamsbamx 2019-06-22 18:21:50 +02:00
parent bb776e25a9
commit ac9755306c
4 changed files with 1 additions and 12 deletions

View file

@ -114,6 +114,7 @@ void ThreadManager::SwitchContext(Thread* new_thread) {
kernel.SetCurrentProcess(SharedFrom(current_thread->owner_process));
kernel.memory.SetCurrentPageTable(
&current_thread->owner_process->vm_manager.page_table);
cpu->PageTableChanged(); // notify the CPU the page table in memory has changed
}
cpu->LoadContext(new_thread->context);