Implement sched_yield, enable interrupts in userspace

This commit is contained in:
Jeremy Soller 2016-09-10 19:18:59 -06:00
parent bd7bca30fa
commit 842826c1b0
5 changed files with 21 additions and 6 deletions

View file

@ -1,3 +1,8 @@
use std::thread;
pub fn main() {
println!("Hello, World!");
loop {
thread::yield_now();
}
}