summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-03-22 20:39:20 +0000
committernjl <njl@FreeBSD.org>2004-03-22 20:39:20 +0000
commitc19241479b1e25213c0e70a945c62909b88f2864 (patch)
tree417ed9451a7c845f5992259d6219a76479109fe9
parent532a38d009e53676a6f11e9af3f4e0bb3be8391e (diff)
downloadFreeBSD-src-c19241479b1e25213c0e70a945c62909b88f2864.zip
FreeBSD-src-c19241479b1e25213c0e70a945c62909b88f2864.tar.gz
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.
-rw-r--r--sys/dev/acpica/acpi_pcib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi_pcib.c b/sys/dev/acpica/acpi_pcib.c
index 2d34aae..8c8a028 100644
--- a/sys/dev/acpica/acpi_pcib.c
+++ b/sys/dev/acpica/acpi_pcib.c
@@ -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];
OpenPOWER on IntegriCloud