mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-27 03:43:36 +04:00
12 lines
228 B
Rust
12 lines
228 B
Rust
use super::TaskContext;
|
|
use core::arch::global_asm;
|
|
|
|
global_asm!(include_str!("switch.S"));
|
|
|
|
extern "C" {
|
|
pub fn __switch(
|
|
current_task_cx_ptr: *mut TaskContext,
|
|
next_task_cx_ptr: *const TaskContext
|
|
);
|
|
}
|