Zero out the firmware waking vector on successful resume from ACPI sleep.
authormlarkin <mlarkin@openbsd.org>
Thu, 29 Jul 2010 00:29:49 +0000 (00:29 +0000)
committermlarkin <mlarkin@openbsd.org>
Thu, 29 Jul 2010 00:29:49 +0000 (00:29 +0000)
ok deraadt@

sys/arch/amd64/amd64/acpi_machdep.c
sys/arch/i386/i386/acpi_machdep.c

index 726b2d4..09e0f4f 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: acpi_machdep.c,v 1.42 2010/07/27 16:53:11 deraadt Exp $       */
+/*     $OpenBSD: acpi_machdep.c,v 1.43 2010/07/29 00:29:49 mlarkin Exp $       */
 /*
  * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
  *
@@ -243,6 +243,9 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state)
 
        /* Resume path continues here */
 
+       /* Reset the vector */
+       sc->sc_facs->wakeup_vector = 0;
+
 #if NISA > 0
        i8259_default_setup();
 #endif
index 69d1b59..27d5934 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: acpi_machdep.c,v 1.36 2010/07/27 16:53:10 deraadt Exp $       */
+/*     $OpenBSD: acpi_machdep.c,v 1.37 2010/07/29 00:29:49 mlarkin Exp $       */
 /*
  * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
  *
@@ -261,6 +261,9 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state)
 
        /* Resume path continues here */
 
+       /* Reset the vector */
+       sc->sc_facs->wakeup_vector = 0;
+
 #if NISA > 0
        isa_defaultirq();
 #endif