Files
linux/arch/i386/kernel
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
..
2007-05-08 11:15:10 -07:00
2005-04-16 15:20:36 -07:00
2007-03-29 10:25:32 -07:00
2006-12-08 08:28:39 -08:00
2007-06-20 14:27:25 -07:00
2007-05-12 11:26:22 -07:00
2007-06-01 08:18:28 -07:00
2005-04-16 15:20:36 -07:00
2007-06-01 08:18:27 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00