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:
parent
e0a8be5522
commit
8081863709
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user