Special Mask Mode for i8259 PIC
PATCH 1/1 Special Mask Mode for i8259 PIC
Hello!
The i8259 PIC implementation in QEMU (at least up to v0.9.1) contains a special_mask flag, but never uses it. Here is a tiny patch that should match the correct behavior according to the 8259A spec I have. It is also consistent with my own hardware in the cases I have tested.
Signature · 1 line
Sebastian Reichelt
i8259.c renamed from i8259.c.old +2 -0
@@ -123,6 +123,8 @@master, the IRQ coming from the slave is not taken into account for the priority computation. */ mask = s->isr; +if (s->special_mask) + mask &= ~s->imr;if (s->special_fully_nested_mode && s == &s->pics_state->pics[0 ]) mask &= ~(1 <<2 ); cur_priority =get_priority (s, mask);