RefCell->UPSafeCell && TaskCx->TCB

This commit is contained in:
Yifan Wu 2021-07-12 22:09:34 +08:00
parent bf53e6d211
commit cf7c2abaa6
14 changed files with 105 additions and 65 deletions

View file

@ -1,8 +1,10 @@
global_asm!(include_str!("switch.S"));
use super::TaskContext;
extern "C" {
pub fn __switch(
current_task_cx_ptr2: *const usize,
next_task_cx_ptr2: *const usize
current_task_cx_ptr: *mut TaskContext,
next_task_cx_ptr: *const TaskContext
);
}