pub unsafe extern "C" fn context_switch_pt(
from: *mut KContext,
to: *const KContext,
pt_token: PageTable,
)
Expand description
Context Switch With Page Table
Save the context of current task and switch to new task.
ยงSafety
This function is unsafe because it performs a context switch, which can lead to undefined behavior if not used correctly. It also requires a valid page table token. The page table token is used to switch the page table for the new task.