1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-23 18:06:20 +04:00

Fix inits loop. We will use WFI to avoid hogging resources.

This commit is contained in:
Stephen Marz 2020-04-24 18:48:19 -04:00
parent e0a8be5522
commit 8081863709

View File

@ -157,7 +157,7 @@ fn init_process() {
fn make_syscall(sysno: usize, duration: usize) -> usize;
}
println!("Init is still here :), alright, back to sleep.");
for _ in 0..100 {
for _ in 0..500 {
llvm_asm!("wfi");
}
}