Remove meaningless sstatus::set_sie() when initializing.

This commit is contained in:
Yifan Wu 2021-01-03 17:37:23 +08:00
parent 30a0de23a1
commit 87a3500b34
2 changed files with 0 additions and 8 deletions

View file

@ -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,