Remove meaningless sstatus::set_sie() when initializing.
This commit is contained in:
parent
30a0de23a1
commit
87a3500b34
2 changed files with 0 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue