linux-stable-rt/arch/i386
Tian Kevin c8cbee61c9 ACPI: preserve the ebx value in acpi_copy_wakeup_routine
Register %ebx serves as the "global offset table base register" for
position-independent code.  For absolute code, %ebx serves as a local
register and has no specified role in the function calling sequence.  In
either case, a function must preserve the register value for the caller.

acpi_copy_wakeup_routine overrides %ebx without saving it, this may corrupt
the called data.

Kevin found that most time the value of Sx is saved in %esi, however
sometimes compiler also uses %ebx.  When this happens, suspends fails since
sleep value in ebx is changed by acpi_copy_wakeup_routine.

The same funtion in X86_64 doesn't have this problem.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Looks-okay-to: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Len Brown <lenb@kernel.org>
Acked-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-06-24 08:59:12 -07:00
..
boot i386: Fix wrong CPU error message in early boot path 2007-05-21 09:56:57 -07:00
crypto
kernel ACPI: preserve the ebx value in acpi_copy_wakeup_routine 2007-06-24 08:59:12 -07:00
lib
mach-default
mach-es7000
mach-generic i386 bigsmp: section mismatch fixes 2007-05-23 20:14:15 -07:00
mach-visws
mach-voyager
math-emu potential parse error in ifdef part 3 2007-06-08 17:23:33 -07:00
mm Allow DEBUG_RODATA and KPROBES to co-exist 2007-06-21 16:02:50 -07:00
oprofile x86: fix oprofile double free 2007-06-01 08:18:28 -07:00
pci PCI: i386: fixup for Siemens Nixdorf AG FSC Multiprocessor Interrupt Controllers 2007-05-31 16:56:37 -07:00
power
Kconfig i386: Make CMPXCHG64 only dependent on PAE 2007-06-22 18:41:18 -07:00
Kconfig.cpu i386: Make CMPXCHG64 only dependent on PAE 2007-06-22 18:41:18 -07:00
Kconfig.debug Allow DEBUG_RODATA and KPROBES to co-exist 2007-06-21 16:02:50 -07:00
Makefile
Makefile.cpu
defconfig i386: Update defconfig 2007-05-21 09:56:56 -07:00