Correction to prev comment
This commit is contained in:
parent
a908bcc0e4
commit
3827beec26
|
@ -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",
|
||||
|
||||
|
|
Loading…
Reference in a new issue