Before the commits supporting interrupts from the UART, it's worth
stopping to clean up a little bit. This commented-out code to execute
ecall (which triggers an exception and thus exercises the exception
handler) isn't really needed going forward, so this commit drops it.
}
println!("Kernel init complete");
- // ecall from machine mode is currently a panic so uncommenting this block will trigger an
- // exception and execute the panic handler.
- /*
- unsafe {
- asm!("ecall")
- }
- */
println!("Going idle!");
unsafe { asm!("1:","wfi", "j 1b") } // Hopefully wfi will make this less busy (1b is
// 'backwards to 1:'