Switch ok with debug mode apps, implement sys_exit correctly later.
This commit is contained in:
parent
4e8059e222
commit
3f3e6b2b99
16 changed files with 244 additions and 147 deletions
7
os/src/task/switch.rs
Normal file
7
os/src/task/switch.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
use super::TaskContext;
|
||||
|
||||
global_asm!(include_str!("switch.S"));
|
||||
|
||||
extern "C" {
|
||||
pub fn __switch(current_task_cx: &usize, next_task_cx: &usize);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue