diff --git a/risc_v/src/main.rs b/risc_v/src/main.rs index 0504e48..8a5ae18 100755 --- a/risc_v/src/main.rs +++ b/risc_v/src/main.rs @@ -4,6 +4,7 @@ #![no_main] #![no_std] #![feature(panic_info_message, + llvm_asm, asm, global_asm, allocator_api, diff --git a/risc_v/src/process.rs b/risc_v/src/process.rs index 8b2ef4b..a9b5aa6 100644 --- a/risc_v/src/process.rs +++ b/risc_v/src/process.rs @@ -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"); + } } } }