kernel-ark/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
..
acpi
cpu
.gitignore
alternative.c
apic.c
apm.c
asm-offsets.c
bootflag.c
cpuid.c
crash_dump.c
crash.c
doublefault.c
e820.c
early_printk.c
efi_stub.S
efi.c
entry.S
head.S
hpet.c
i386_ksyms.c
i387.c
i8237.c
i8253.c
i8259.c
init_task.c
io_apic.c
ioport.c
irq.c
kprobes.c
ldt.c
legacy_serial.c
machine_kexec.c
Makefile
mca.c
microcode.c
module.c
mpparse.c
msr.c
nmi.c
numaq.c
paravirt.c
pci-dma.c
pcspeaker.c
process.c
ptrace.c
quirks.c
reboot_fixups.c
reboot.c
relocate_kernel.S
scx200.c
setup.c
sigframe.h
signal.c
smp.c
smpboot.c
smpcommon.c
srat.c
summit.c
sys_i386.c
syscall_table.S
sysenter.c
time.c
topology.c
trampoline.S
traps.c
tsc_sync.c
tsc.c
verify_cpu.S
vm86.c
vmi.c
vmiclock.c
vmlinux.lds.S
vsyscall-int80.S
vsyscall-note.S
vsyscall-sigreturn.S
vsyscall-sysenter.S
vsyscall.lds.S
vsyscall.S