Correction to prev comment

This commit is contained in:
gil 2024-05-16 12:21:33 -05:00
parent a908bcc0e4
commit 3827beec26

View file

@ -39,8 +39,7 @@ unsafe extern "C" fn _enter() -> ! {
// set the stack pointer // set the stack pointer
"la sp, _init_stack_top", "la sp, _init_stack_top",
// We use mret here so that the mstatus register // Make sure machine mode is set, and enable coarse interrupts
// is properly updated.
"li t0, (0b11 << 11) | (1 << 7) | (1 << 3)", "li t0, (0b11 << 11) | (1 << 7) | (1 << 3)",
"csrw mstatus, t0", "csrw mstatus, t0",