| Submitter | Jason Baron |
|---|---|
| Date | Nov. 14, 2012, 8:54 p.m. |
| Message ID | <2c22baaff40131e9edf5ce9fd977982bd9123f88.1352922993.git.jbaron@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/199029/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/lpc_ich9.c b/hw/lpc_ich9.c index f8f06b3..2fc83a4 100644 --- a/hw/lpc_ich9.c +++ b/hw/lpc_ich9.c @@ -264,9 +264,11 @@ static int ich9_gsi_to_pirq(int gsi) static void ich9_lpc_update_apic(ICH9LPCState *lpc, int gsi) { - int level; + int level = 0; - level = pci_bus_get_irq_level(lpc->d.bus, ich9_gsi_to_pirq(gsi)); + if (gsi >= ICH9_LPC_PIC_NUM_PINS) { + level |= pci_bus_get_irq_level(lpc->d.bus, ich9_gsi_to_pirq(gsi)); + } if (gsi == ich9_lpc_sci_irq(lpc)) { level |= lpc->sci_level; }