Implement sched_yield, enable interrupts in userspace
This commit is contained in:
parent
bd7bca30fa
commit
842826c1b0
5 changed files with 21 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
use std::thread;
|
||||
|
||||
pub fn main() {
|
||||
println!("Hello, World!");
|
||||
loop {
|
||||
thread::yield_now();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue