linux_dsm_epyc7002/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 [CRYPTO] api: Get rid of flags argument to setkey 2006-09-21 11:41:02 +10:00
kernel ACPI: preserve the ebx value in acpi_copy_wakeup_routine 2007-06-24 08:59:12 -07:00
lib i386: Add safe variants of rdmsr_on_cpu and wrmsr_on_cpu 2007-05-08 17:22:01 +02:00
mach-default Add IRQF_IRQPOLL flag on i386 2007-05-08 11:15:22 -07:00
mach-es7000 ACPICA: Remove duplicate table manager 2007-02-02 21:14:28 -05:00
mach-generic i386 bigsmp: section mismatch fixes 2007-05-23 20:14:15 -07:00
mach-visws Add IRQF_IRQPOLL flag on i386 2007-05-08 11:15:22 -07:00
mach-voyager i386: fix voyager build 2007-05-15 08:54:01 -07:00
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 [PATCH] x86: Save and restore the fixed-range MTRRs of the BSP when suspending 2007-05-02 19:27:17 +02:00
defconfig i386: Update defconfig 2007-05-21 09:56:56 -07:00
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 Revert "[PATCH] x86: Drop cc-options call for all options supported in gcc 3.2+" 2007-05-17 20:18:11 -07:00
Makefile.cpu [PATCH] i386: Fix usage of -mtune when X86_GENERIC=y or CONFIG_MCORE2=y 2007-05-02 19:27:06 +02:00