android_kernel_xiaomi_sm8350/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
Makefile
mce.c x86: Stop MCEs and NMIs during code patching 2007-07-22 11:03:37 -07:00
mce.h
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
p5.c
p6.c
therm_throt.c
winchip.c