Skip to content

Commit

Permalink
restore irq check on acknowledge
Browse files Browse the repository at this point in the history
  • Loading branch information
copy committed Jan 2, 2025
1 parent 21310a0 commit d756a11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rust/cpu/pic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ pub unsafe fn pic_acknowledge_irq(pic: &mut Pic) -> Option<u8> {
dbg_log!("[PIC] master> acknowledge {}", irq);
}

//pic.check_irqs_master(); // XXX
pic.check_irqs_master(); // XXX

if irq == 2 {
acknowledge_irq_slave(pic)
Expand Down Expand Up @@ -377,7 +377,7 @@ unsafe fn acknowledge_irq_slave(pic: &mut Pic) -> Option<u8> {
if PIC_LOG_VERBOSE {
dbg_log!("[PIC] slave> acknowledge {}", irq);
}
//pic.check_irqs_slave(); // XXX
pic.check_irqs_slave(); // XXX

Some(pic.slave.irq_map | irq)
}
Expand Down

0 comments on commit d756a11

Please sign in to comment.