From 8081863709b0de5b6b88665cc2d72f0349c4f91f Mon Sep 17 00:00:00 2001 From: Stephen Marz Date: Fri, 24 Apr 2020 18:48:19 -0400 Subject: [PATCH] Fix inits loop. We will use WFI to avoid hogging resources. --- risc_v/src/process.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/risc_v/src/process.rs b/risc_v/src/process.rs index a9b5aa6..e4d6337 100644 --- a/risc_v/src/process.rs +++ b/risc_v/src/process.rs @@ -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"); } }