aboutsummaryrefslogtreecommitdiff
path: root/sys/x86/acpica
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2018-05-29 16:16:24 +0000
committerAndriy Gapon <avg@FreeBSD.org>2018-05-29 16:16:24 +0000
commitec6faf94c489e4217207bb2cbc1c36d73f07b522 (patch)
tree7b1cf67a643f8cef8c74f85dc6a05351b36325ee /sys/x86/acpica
parentfe1ba25039bd4c230fab01d37031e09d19ee6cbe (diff)
downloadsrc-ec6faf94c489e4217207bb2cbc1c36d73f07b522.tar.gz
src-ec6faf94c489e4217207bb2cbc1c36d73f07b522.zip
Notes
Diffstat (limited to 'sys/x86/acpica')
-rw-r--r--sys/x86/acpica/acpi_wakeup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/x86/acpica/acpi_wakeup.c b/sys/x86/acpica/acpi_wakeup.c
index ef910cca6059..699512266255 100644
--- a/sys/x86/acpica/acpi_wakeup.c
+++ b/sys/x86/acpica/acpi_wakeup.c
@@ -46,6 +46,7 @@ __FBSDID("$FreeBSD$");
#include <sys/memrange.h>
#include <sys/smp.h>
#include <sys/systm.h>
+#include <sys/cons.h>
#include <vm/vm.h>
#include <vm/pmap.h>
@@ -296,6 +297,12 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state)
for (;;)
ia32_pause();
} else {
+ /*
+ * Re-initialize console hardware as soon as possibe.
+ * No console output (e.g. printf) is allowed before
+ * this point.
+ */
+ cnresume();
#ifdef __amd64__
fpuresume(susppcbs[0]->sp_fpususpend);
#else