X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2F8259a.c;h=52d84e9d00c193e85c784560b431f7eaaa8f6968;hb=c34c7a69079dd6165db965454104f20c7d873c20;hp=c674d7496775257f1f239d2efcae04f2191874f9;hpb=8163b56655f024bb1e3abcdce028598554343d02;p=palacios.git diff --git a/palacios/src/devices/8259a.c b/palacios/src/devices/8259a.c index c674d74..52d84e9 100644 --- a/palacios/src/devices/8259a.c +++ b/palacios/src/devices/8259a.c @@ -129,11 +129,14 @@ static int pic_raise_intr(void * private_data, int irq, int error_code) { irq = 9; } + PrintDebug("Raising irq %d in the PIC\n", irq); + if (irq <= 7) { state->master_irr |= 0x01 << irq; } else if ((irq > 7) && (irq < 16)) { state->slave_irr |= 0x01 << (irq - 7); } else { + PrintDebug("Invalid IRQ raised (%d)\n", irq); return -1; }