diff options
Diffstat (limited to 'Source/Kernel/TaskManager/Thread.class.cpp')
-rw-r--r-- | Source/Kernel/TaskManager/Thread.class.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Kernel/TaskManager/Thread.class.cpp b/Source/Kernel/TaskManager/Thread.class.cpp index 419a954..a9c53ed 100644 --- a/Source/Kernel/TaskManager/Thread.class.cpp +++ b/Source/Kernel/TaskManager/Thread.class.cpp @@ -18,6 +18,7 @@ u32int Thread::scall(u8int wat, u32int a, u32int b, u32int c, u32int d) { } void runThread(Thread* thread, void* data, thread_entry_t entry_point) { + thread->m_process->getPagedir()->switchTo(); if (thread->m_isKernel) { asm volatile("sti"); u32int ret = entry_point(data); //Run ! |