Make sure bit 2 in the ISR of the master PIC is set when an IRQ in the slave PIC occurs.


svn path=/branches/ntvdm/; revision=59269
This commit is contained in:
Aleksandar Andrejevic 2013-06-20 19:43:29 +00:00
parent b44c5d3a6f
commit 7765319949

View file

@ -188,6 +188,12 @@ VOID PicInterruptRequest(BYTE Number)
{
return;
}
/* Check the if the slave PIC is busy */
if (MasterPic.InServiceRegister & (1 << 2)) return;
/* Set the IRQ 2 bit in the master ISR */
MasterPic.InServiceRegister |= 1 << 2;
/* Check if the interrupt is busy or in a cascade */
if (SlavePic.CascadeRegister & (1 << Number)