diff --git a/context/mod.rs b/context/mod.rs index 1e96a01c416e3ec64079618f1fed7aeae40826f1..a31d7b4aa1df553c0414c2f68f6b49ab1a33b3a0 100644 --- a/context/mod.rs +++ b/context/mod.rs @@ -81,6 +81,7 @@ impl ContextList { let func_ptr = stack.as_mut_ptr().offset(offset as isize); *(func_ptr as *mut usize) = func as usize; } + context.arch.set_page_table(unsafe { arch::paging::ActivePageTable::new().address() }); context.arch.set_stack(stack.as_ptr() as usize + offset); context.kstack = Some(stack); }