* [PATCH] Fix typo in arch/i386/power/cpu.c
@ 2006-05-22 17:15 Zachary Amsden
2006-05-22 17:45 ` Pavel Machek
0 siblings, 1 reply; 2+ messages in thread
From: Zachary Amsden @ 2006-05-22 17:15 UTC (permalink / raw)
To: Andrew Morton, Linux Kernel Mailing List, arturzaprzala,
Pavel Machek
[-- Attachment #1: Type: text/plain, Size: 177 bytes --]
Fix a typo which caused us to corrupt CR2 (not likely a problem) and
fail to restore CR0 (potentially a problem on APM systems, since TS/EM
bits might be lost) after suspend.
[-- Attachment #2: i386-bogus-cr2-assignement --]
[-- Type: text/plain, Size: 810 bytes --]
Fix a typo in suspend code noticed by Artur Zaprzala. I'm unsure if this
actually causes a bug in practice, since the ACPI wakeup code also restores
CR0, and the APM code returns to protected mode, but the fix is obviously much
better.
Signed-off-by: Zachary Amsden <zach@vmware.com>
Index: linux-2.6.17-rc/arch/i386/power/cpu.c
===================================================================
--- linux-2.6.17-rc.orig/arch/i386/power/cpu.c 2006-03-19 21:53:29.000000000 -0800
+++ linux-2.6.17-rc/arch/i386/power/cpu.c 2006-05-22 09:50:50.000000000 -0700
@@ -92,7 +92,7 @@ void __restore_processor_state(struct sa
write_cr4(ctxt->cr4);
write_cr3(ctxt->cr3);
write_cr2(ctxt->cr2);
- write_cr2(ctxt->cr0);
+ write_cr0(ctxt->cr0);
/*
* now restore the descriptor tables to their proper values
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix typo in arch/i386/power/cpu.c
2006-05-22 17:15 [PATCH] Fix typo in arch/i386/power/cpu.c Zachary Amsden
@ 2006-05-22 17:45 ` Pavel Machek
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2006-05-22 17:45 UTC (permalink / raw)
To: Zachary Amsden; +Cc: Andrew Morton, Linux Kernel Mailing List, arturzaprzala
On Po 22-05-06 10:15:35, Zachary Amsden wrote:
> Fix a typo which caused us to corrupt CR2 (not likely a problem) and
> fail to restore CR0 (potentially a problem on APM systems, since TS/EM
> bits might be lost) after suspend.
> Fix a typo in suspend code noticed by Artur Zaprzala. I'm unsure if this
> actually causes a bug in practice, since the ACPI wakeup code also restores
> CR0, and the APM code returns to protected mode, but the fix is obviously much
> better.
>
> Signed-off-by: Zachary Amsden <zach@vmware.com>
I believe it is already queued in -mm tree. If you actually know know
a system it breaks (or if it breaks vmware), we have very good reason
to push it now.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-22 17:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-22 17:15 [PATCH] Fix typo in arch/i386/power/cpu.c Zachary Amsden
2006-05-22 17:45 ` Pavel Machek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.