main.rs: remove commented-out ecall code
authorKit Rhett Aultman <kit@kitaultman.com>
Mon, 2 Sep 2024 23:31:18 +0000 (19:31 -0400)
committerKit Rhett Aultman <kit@kitaultman.com>
Mon, 2 Sep 2024 23:31:18 +0000 (19:31 -0400)
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.

src/main.rs

index 76f3110573bd69025267601325027f2ecce1f82b..7c0fa4a4f68df5a40b2df17766eaea176b7bb70c 100644 (file)
@@ -116,13 +116,6 @@ extern "C" fn entry() -> ! {
     }
     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:'