diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2007-02-22 07:40:48 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2007-02-22 07:40:48 +0000 |
commit | 8d564d16d141f6441984e9c7c561e482e5f0268b (patch) | |
tree | 5d86774757d3567db61f438ed2dac4d86e038b69 | |
parent | 009e5051018d6d02b817f085a7ad5f793399e608 (diff) |
We were getting no interrupts in .MP. There are 2 fixes; one in
acpi_machdep.c and move the interrupt establishment down after ioapic
has been initialized.
ok jordan
-rw-r--r-- | sys/dev/acpi/acpi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 482a534ee9a..c2db146303f 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.83 2007/02/21 19:17:22 kettenis Exp $ */ +/* $OpenBSD: acpi.c,v 1.84 2007/02/22 07:40:47 marco Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -478,8 +478,6 @@ acpi_attach(struct device *parent, struct device *self, void *aux) } while (!(acpi_read_pmreg(sc, ACPIREG_PM1_CNT, 0) & ACPI_PM1_SCI_EN)); #endif - acpi_attach_machdep(sc); - printf("\n"); printf("%s: tables ", DEVNAME(sc)); @@ -1227,6 +1225,8 @@ acpi_isr_thread(void *arg) struct acpi_softc *sc = thread->sc; u_int32_t gpe; + acpi_attach_machdep(sc); + /* * If we have an interrupt handler, we can get notification * when certain status bits changes in the ACPI registers, |