summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2009-11-24 17:00:02 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2009-11-24 17:00:02 +0000
commit2d7c096b13915d581dcff6bfe4928b058a6ee29a (patch)
tree41ae2a0983a31771f80fb41aed31be5f837fc1d4 /sys/arch/i386
parent91b0184fb6307e543a68f54380bebe94334ad6e1 (diff)
Poke CR3 one last time before resuming. Suggested by deraadt@.
ok deraadt@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/acpi_wakecode.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/i386/i386/acpi_wakecode.S b/sys/arch/i386/i386/acpi_wakecode.S
index 2b0ff810e92..3f80542bf8a 100644
--- a/sys/arch/i386/i386/acpi_wakecode.S
+++ b/sys/arch/i386/i386/acpi_wakecode.S
@@ -305,6 +305,10 @@ _C_LABEL(acpi_protected_mode_resume):
push acpi_saved_fl
popfl
+ /* Poke CR3 one more time. Might not be necessary */
+ movl acpi_saved_cr3,%eax
+ movl %eax,%cr3
+
/*
* Return to the OS. We've previously saved the resume
* address in acpi_saved_ret (via a call to acpi_savecpu