android_kernel_motorola_sm6225/arch/i386/kernel/cpu/mcheck
Andi Kleen 8f4e956b31 x86: Stop MCEs and NMIs during code patching
When a machine check or NMI occurs while multiple byte code is patched
the CPU could theoretically see an inconsistent instruction and crash.
Prevent this by temporarily disabling MCEs and returning early in the
NMI handler.

Based on discussion with Mathieu Desnoyers.

Cc: Mathieu Desnoyers <compudj@krystal.dyndns.org>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-22 11:03:37 -07:00
..
k7.c i386: Clear MCE flag on AMD K6 2007-05-21 09:56:57 -07:00
Makefile [PATCH] x86: Refactor thermal throttle processing 2006-09-26 10:52:42 +02:00
mce.c x86: Stop MCEs and NMIs during code patching 2007-07-22 11:03:37 -07:00
mce.h [PATCH] i386: Move mce_disabled to asm/mce.h 2007-02-13 13:26:26 +01:00
non-fatal.c x86: round_jiffies() for i386 and x86-64 non-critical/corrected MCE polling 2007-07-21 18:37:10 -07:00
p4.c [PATCH] i386: Clean up arch/i386/kernel/cpu/mcheck/p4.c 2007-05-02 19:27:16 +02:00
p5.c [PATCH] x86: add MCE resume 2005-11-07 07:53:30 -08:00
p6.c [PATCH] x86: add MCE resume 2005-11-07 07:53:30 -08:00
therm_throt.c HOTPLUG: Adapt thermal throttle to CPU_DYING 2007-07-16 12:05:50 +03:00
winchip.c [PATCH] x86: add MCE resume 2005-11-07 07:53:30 -08:00