From 3827beec26efab1063bcd210f00fdd891e3fb828 Mon Sep 17 00:00:00 2001 From: gil Date: Thu, 16 May 2024 12:21:33 -0500 Subject: [PATCH] Correction to prev comment --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index e195052..40b2e7e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,8 +39,7 @@ unsafe extern "C" fn _enter() -> ! { // set the stack pointer "la sp, _init_stack_top", - // We use mret here so that the mstatus register - // is properly updated. + // Make sure machine mode is set, and enable coarse interrupts "li t0, (0b11 << 11) | (1 << 7) | (1 << 3)", "csrw mstatus, t0",