diff options
author | William Morrrow | 2006-08-15 07:37:31 +0200 |
---|---|---|
committer | Len Brown | 2006-08-16 23:59:05 +0200 |
commit | 4e6e6504a4572dee3afcb0925ce92ad559e1e0db (patch) | |
tree | 9c1d2798c5db07c4df7cddc5db8f12c4c8037ca3 /arch/i386 | |
parent | Linux v2.6.18-rc4 (diff) | |
download | kernel-qcow2-linux-4e6e6504a4572dee3afcb0925ce92ad559e1e0db.tar.gz kernel-qcow2-linux-4e6e6504a4572dee3afcb0925ce92ad559e1e0db.tar.xz kernel-qcow2-linux-4e6e6504a4572dee3afcb0925ce92ad559e1e0db.zip |
ACPI: Handle BIOS that resumes from S3 to suspend routine rather than resume vector
A BIOS has been found that resumes from S3 to the routine that invoked suspend,
ignoring the resume vector. This appears to the OS as a failed S3 attempt.
This same system suspend/resume's properly with Windows.
It is possible to invoke the protected mode register restore routine (which
would normally restore the sysenter registers) when the BIOS returns from
S3. This has no effect on a correctly running system and repairs the
damage from the deviant BIOS.
Signed-off-by: William Morrow <william.morrow@amd.com>
Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/kernel/acpi/wakeup.S | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/i386/kernel/acpi/wakeup.S b/arch/i386/kernel/acpi/wakeup.S index 9f408eee4e6f..b781b38131c0 100644 --- a/arch/i386/kernel/acpi/wakeup.S +++ b/arch/i386/kernel/acpi/wakeup.S @@ -292,7 +292,10 @@ ENTRY(do_suspend_lowlevel) pushl $3 call acpi_enter_sleep_state addl $4, %esp - ret + +# In case of S3 failure, we'll emerge here. Jump +# to ret_point to recover + jmp ret_point .p2align 4,,7 ret_point: call restore_registers |