* [PATCH] swsusp: fix typo in cr0 handling
@ 2006-05-12 10:02 Pavel Machek
0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2006-05-12 10:02 UTC (permalink / raw)
To: Andrew Morton, kernel list
Writing cr0 to cr2 register can't be right. This fixes the typo. I
wonder how it could survive so long.
Signed-off-by: Pavel Machek <pavel@suse.cz>
diff --git a/arch/i386/power/cpu.c b/arch/i386/power/cpu.c
index 50a0bef..79b2370 100644
--- a/arch/i386/power/cpu.c
+++ b/arch/i386/power/cpu.c
@@ -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
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-12 10:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-12 10:02 [PATCH] swsusp: fix typo in cr0 handling 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.