From d3b9beba04362fbdb20d240d3cdc52b768892d64 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 6 Sep 2002 17:02:01 +0000 Subject: [PATCH] If we are using APIC_IO tell ACPI so it can route interrupts properly. This still doesn't work quite right because of other APIC_IO hacks in the i386 PCI code. --- sys/amd64/acpica/acpi_machdep.c | 3 +++ sys/i386/acpica/acpi_machdep.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sys/amd64/acpica/acpi_machdep.c b/sys/amd64/acpica/acpi_machdep.c index 228c4b7a4778..76e2e92e97c6 100644 --- a/sys/amd64/acpica/acpi_machdep.c +++ b/sys/amd64/acpica/acpi_machdep.c @@ -330,6 +330,9 @@ acpi_machdep_init(device_t dev) acpi_install_wakeup_handler(sc); +#ifdef APIC_IO + acpi_SetIntrModel(ACPI_INTR_APIC); +#endif return (0); } diff --git a/sys/i386/acpica/acpi_machdep.c b/sys/i386/acpica/acpi_machdep.c index 228c4b7a4778..76e2e92e97c6 100644 --- a/sys/i386/acpica/acpi_machdep.c +++ b/sys/i386/acpica/acpi_machdep.c @@ -330,6 +330,9 @@ acpi_machdep_init(device_t dev) acpi_install_wakeup_handler(sc); +#ifdef APIC_IO + acpi_SetIntrModel(ACPI_INTR_APIC); +#endif return (0); }