kernel_optimize_test/arch/x86
David Fries e532c06f2a x86: fix i486 suspend to disk CR4 oops
arch/x86/power/cpu_32.c __save_processor_state calls read_cr4()
only a i486 CPU doesn't have the CR4 register.  Trying to read it
produces an invalid opcode oops during suspend to disk.

Use the safe rc4 reading op instead. If the value to be written is
zero the write is skipped.

arch/x86/power/hibernate_asm_32.S
done: swapped the use of %eax and %ecx to use jecxz for
the zero test and jump over store to %cr4.
restore_image: s/%ecx/%eax/ to be consistent with done:

In addition to __save_processor_state, acpi_save_state_mem,
efi_call_phys_prelog, and efi_call_phys_epilog had checks added
(acpi restore was in assembly and already had a check for
non-zero).  There were other reads and writes of CR4, but MCE and
virtualization shouldn't be executed on a i486 anyway.

Signed-off-by: David Fries <david@fries.net>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-08-18 08:50:19 +02:00
..
boot x86: cleanup for setup code crashes during IST probe 2008-08-14 00:13:52 +02:00
configs
crypto
ia32 tracehook: exec 2008-07-26 12:00:08 -07:00
kernel x86: fix i486 suspend to disk CR4 oops 2008-08-18 08:50:19 +02:00
kvm KVM: Advertise synchronized mmu support to userspace 2008-07-29 12:34:02 +03:00
lguest lguest: set max_pfn_mapped, growl loudly at Yinghai Lu 2008-07-29 09:58:31 +10:00
lib x86: wrong register was used in align macro 2008-07-30 10:10:39 -07:00
mach-default
mach-es7000
mach-generic
mach-rdc321x
mach-voyager
math-emu
mm x86: fix section mismatch warning - spp_getpage() 2008-08-15 19:16:06 +02:00
oprofile x86/oprofile/nmi_int: add Nehalem to list of ppro cores 2008-07-24 17:29:00 -07:00
pci x86: silence mmconfig printk 2008-08-15 13:52:39 +02:00
power x86: fix i486 suspend to disk CR4 oops 2008-08-18 08:50:19 +02:00
vdso
video
xen xen: don't use sysret for sysexit32 2008-07-24 12:28:12 +02:00
Kconfig arch/x86/Kconfig: clean up, experimental adjustement 2008-08-15 14:06:54 +02:00
Kconfig.cpu
Kconfig.debug
Makefile x86, RDC321x: add to mach-default 2008-07-26 13:51:46 +02:00
Makefile_32.cpu