summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2009-11-24 17:40:00 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2009-11-24 17:40:00 +0000
commit521eb75d16273199008aaca90db306e2b376f246 (patch)
tree6c42b84f9b14572f385f06668b3e88019942e98f /sys/arch/amd64
parent2d7c096b13915d581dcff6bfe4928b058a6ee29a (diff)
Save FPU state before suspend.
ok deraadt@, kettenis@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/acpi_machdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/acpi_machdep.c b/sys/arch/amd64/amd64/acpi_machdep.c
index 3ec76aebf79..2f040d950d6 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.25 2009/11/23 16:21:54 pirofti Exp $ */
+/* $OpenBSD: acpi_machdep.c,v 1.26 2009/11/24 17:39:59 mlarkin Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -225,6 +225,7 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state)
/* Copy the current cpu registers into a safe place for resume. */
if (acpi_savecpu()) {
+ fpusave_cpu(curcpu(), 1);
wbinvd();
acpi_enter_sleep_state(sc, state);
panic("%s: acpi_enter_sleep_state failed", DEVNAME(sc));