Revert "开始实现task context 所以, 现在编译出可以主动让出cpu的用户应用"

This reverts commit 9b6bfc7c87.
ch3-coop
zhangxinyu 2 years ago
parent 27973ef2ea
commit 2a38f96b98

@ -13,7 +13,7 @@ fn main() -> i32 {
print!("A"); print!("A");
} }
println!(" [{}/{}]", i + 1, HEIGHT); println!(" [{}/{}]", i + 1, HEIGHT);
sys_yield(); // sys_yield();
} }
println!("Test write_a OK!"); println!("Test write_a OK!");
0 0

@ -13,7 +13,7 @@ fn main() -> i32 {
print!("B"); print!("B");
} }
println!(" [{}/{}]", i + 1, HEIGHT); println!(" [{}/{}]", i + 1, HEIGHT);
sys_yield(); // sys_yield();
} }
println!("Test write_b OK!"); println!("Test write_b OK!");
0 0

@ -13,7 +13,7 @@ fn main() -> i32 {
print!("C"); print!("C");
} }
println!(" [{}/{}]", i + 1, HEIGHT); println!(" [{}/{}]", i + 1, HEIGHT);
sys_yield(); // sys_yield();
} }
println!("Test write_c OK!"); println!("Test write_c OK!");
0 0

Loading…
Cancel
Save