Remove meaningless sstatus::set_sie() when initializing.

This commit is contained in:
Yifan Wu 2021-01-03 17:39:46 +08:00
parent c651f1b3de
commit 780a73ed6f
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,