Use the correct length for appending an extended irq resource. This may

have broken APIC routing.  This bug has been present since rev 1.33.
This commit is contained in:
njl 2004-03-22 20:39:20 +00:00
parent 532a38d009
commit c19241479b

View File

@ -358,7 +358,7 @@ acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin,
resbuf.Data.Irq.Interrupts[0] = Interrupts[0];
} else {
resbuf.Id = ACPI_RSTYPE_EXT_IRQ;
resbuf.Length = ACPI_SIZEOF_RESOURCE(ACPI_RESOURCE_IRQ);
resbuf.Length = ACPI_SIZEOF_RESOURCE(ACPI_RESOURCE_EXT_IRQ);
resbuf.Data.ExtendedIrq = prsres->Data.ExtendedIrq;
resbuf.Data.ExtendedIrq.NumberOfInterrupts = 1;
resbuf.Data.ExtendedIrq.Interrupts[0] = Interrupts[0];