Enable also MEIE and MIE
This commit is contained in:
parent
a858b3548e
commit
298595ba3c
@ -8,8 +8,8 @@ index 0ae604a..94832c8 100644
|
||||
|
||||
- if (ext_irqfn != default_irqfn)
|
||||
- csr_set(CSR_MIE, MIP_MEIP);
|
||||
+ csr_set(CSR_MIE, MIP_SEIP);
|
||||
+ csr_set(CSR_MSTATUS, MSTATUS_SIE);
|
||||
+ csr_set(CSR_MIE, MIP_MEIP | MIP_SEIP);
|
||||
+ csr_set(CSR_MSTATUS, MSTATUS_MIE | MSTATUS_SIE);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -19,8 +19,8 @@ index 0ae604a..94832c8 100644
|
||||
|
||||
- if (ext_irqfn != default_irqfn)
|
||||
- csr_clear(CSR_MIE, MIP_MEIP);
|
||||
+ csr_clear(CSR_MIE, MIP_SEIP);
|
||||
+ csr_clear(CSR_MSTATUS, MSTATUS_SIE);
|
||||
+ csr_clear(CSR_MIE, MIP_MEIP | MIP_SEIP);
|
||||
+ csr_clear(CSR_MSTATUS, MSTATUS_MIE | MSTATUS_SIE);
|
||||
|
||||
sbi_platform_irqchip_exit(plat);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user