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:
parent
58ab3f3b6f
commit
e0a8be5522
@ -4,6 +4,7 @@
|
||||
#![no_main]
|
||||
#![no_std]
|
||||
#![feature(panic_info_message,
|
||||
llvm_asm,
|
||||
asm,
|
||||
global_asm,
|
||||
allocator_api,
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user