android_kernel_samsung_msm8976/arch/i386/kernel/acpi
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.c [PATCH] x86: default to physical mode on hotplug CPU kernels 2007-05-02 19:27:04 +02:00
cstate.c ACPI: rename cstate_entry_s to cstate_entry 2007-01-10 23:08:38 -05:00
earlyquirk.c [PATCH] x86: revert x86_64-mm-fix-the-irqbalance-quirk-for-e7320-e7520-e7525 2007-05-02 19:27:04 +02:00
Makefile [PATCH] i386/x86-64: Make all early PCI scans dependent on CONFIG_PCI 2006-09-26 10:52:41 +02:00
processor.c Enable P-state software coordination via _PDC 2006-02-09 03:21:49 -05:00
sleep.c [PATCH] don't use flush_tlb_all in suspend time 2006-06-23 07:43:00 -07:00
wakeup.S ACPI: preserve the ebx value in acpi_copy_wakeup_routine 2007-06-24 08:59:12 -07:00