Skip to content

Commit

Permalink
Merge branch 'main' into eliza/myco-update-2k24
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw authored Dec 27, 2024
2 parents d12c096 + 5f4bc9e commit 50ffde3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/allwinner-d1/d1-core/src/plic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50ffde3

Please sign in to comment.