rcore-tutorial/os/src/task/switch.rs
2021-07-12 22:09:34 +08:00

10 lines
200 B
Rust

global_asm!(include_str!("switch.S"));
use super::TaskContext;
extern "C" {
pub fn __switch(
current_task_cx_ptr: *mut TaskContext,
next_task_cx_ptr: *const TaskContext
);
}