diff options
author | 2009-06-04 23:48:00 +0000 | |
---|---|---|
committer | 2009-06-04 23:48:00 +0000 | |
commit | 85f274a0b99af4082e265bbb0a442dd5a9f1d570 (patch) | |
tree | 8cdcdfd44e6a07bee88fd458de1646ff70b41ea1 | |
parent | - factor out rf into its own structure (diff) | |
download | wireguard-openbsd-85f274a0b99af4082e265bbb0a442dd5a9f1d570.tar.xz wireguard-openbsd-85f274a0b99af4082e265bbb0a442dd5a9f1d570.zip |
Change i386 ACPI sleep to KASSERT if the pmap can't be activated
properly. Now i386 and amd64 implementations match.
ok art
-rw-r--r-- | sys/arch/i386/i386/acpi_machdep.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/arch/i386/i386/acpi_machdep.c b/sys/arch/i386/i386/acpi_machdep.c index 47460d9169a..7488077f74c 100644 --- a/sys/arch/i386/i386/acpi_machdep.c +++ b/sys/arch/i386/i386/acpi_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi_machdep.c,v 1.19 2009/06/03 19:05:34 art Exp $ */ +/* $OpenBSD: acpi_machdep.c,v 1.20 2009/06/04 23:48:00 mlarkin Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * @@ -217,11 +217,8 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state) if (rcr3() != pmap_kernel()->pm_pdirpa) { pmap_activate(curproc); - if (rcr3() != pmap_kernel()->pm_pdirpa) { - printf("%s: acpi_sleep_machdep: only kernel thread\n", - DEVNAME(sc)); - return (ENXIO); - } + + KASSERT(rcr3() == pmap_kernel()->pm_pdirpa); } /* |