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

Don't let init sleep. This will cause us to hang in the scheduler.

This commit is contained in:
Stephen Marz 2020-04-24 18:47:49 -04:00
parent 58ab3f3b6f
commit e0a8be5522
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@
#![no_main]
#![no_std]
#![feature(panic_info_message,
llvm_asm,
asm,
global_asm,
allocator_api,

View File

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