diff --git a/platforms/allwinner-d1/d1-core/src/plic.rs b/platforms/allwinner-d1/d1-core/src/plic.rs index a266ffb9..16fd4cde 100644 --- a/platforms/allwinner-d1/d1-core/src/plic.rs +++ b/platforms/allwinner-d1/d1-core/src/plic.rs @@ -61,7 +61,7 @@ impl Plic { /// Disable an interrupt pub fn mask(&self, interrupt: Interrupt) { let (mie, irq_en) = self.index_mie(interrupt); - mie.modify(|r, w| unsafe { w.bits(r.bits() | irq_en) }); + mie.modify(|r, w| unsafe { w.bits(r.bits() & !irq_en) }); } /// Globally set priority for one interrupt