Your ROOT_URL in app.ini is https://bdgit.educoder.net/ but you are visiting http://bdgit.educoder.net/rcore_test/rCore-Tutorial-v3-tests/commit/fd638d53882cbc12d6f545e7dcccea7f6da1e0da You should set ROOT_URL correctly, otherwise the web may not work correctly.

Remove meaningless sstatus::set_sie() when initializing.

pull/20/head
Yifan Wu 4 years ago
parent 208b827b5c
commit fd638d5388

@ -22,8 +22,6 @@ impl TrapContext {
let mut sstatus = sstatus::read();
// set CPU privilege to User after trapping back
sstatus.set_spp(SPP::User);
// enable Supervisor mode interrupt after trapping back
sstatus.set_spie(true);
let mut cx = Self {
x: [0; 32],
sstatus,

@ -10,7 +10,6 @@ use riscv::register::{
Interrupt,
},
stval,
sstatus,
sie,
};
use crate::syscall::syscall;
@ -41,11 +40,6 @@ fn set_user_trap_entry() {
}
}
#[allow(unused)]
pub fn enable_interrupt() {
unsafe { sstatus::set_sie(); }
}
pub fn enable_timer_interrupt() {
unsafe { sie::set_stimer(); }
}

Loading…
Cancel
Save