sys_yield tests worked on qemu.

This commit is contained in:
Yifan Wu 2020-11-29 04:01:38 +08:00
parent 91043b08cd
commit 4590f233b5
10 changed files with 134 additions and 53 deletions

View file

@ -1,7 +1,5 @@
use super::TaskContext;
global_asm!(include_str!("switch.S"));
extern "C" {
pub fn __switch(current_task_cx: &usize, next_task_cx: &usize);
pub fn __switch(current_task_cx: *const usize, next_task_cx: *const usize);
}