diff options
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/acpi_machdep.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/acpi_machdep.c b/sys/arch/amd64/amd64/acpi_machdep.c index d6a044c0dd3..b398aaea06a 100644 --- a/sys/arch/amd64/amd64/acpi_machdep.c +++ b/sys/arch/amd64/amd64/acpi_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi_machdep.c,v 1.18 2009/06/01 19:59:18 mlarkin Exp $ */ +/* $OpenBSD: acpi_machdep.c,v 1.19 2009/06/02 12:50:29 kurt Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * @@ -201,6 +201,11 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state) return (ENXIO); } +#ifdef DIAGNOSTIC + if (curproc != &proc0) + panic("acpi_sleep_machdep: sleeping in non-kernel proc"); +#endif + if (rcr3() != pmap_kernel()->pm_pdirpa) { pmap_activate(curproc); } |