diff options
| author | Tian Kevin <[email protected]> | 2007-06-23 17:16:52 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-06-24 08:59:12 -0700 |
| commit | c8cbee61c9d53ee28473ad33bbb54f6a88f5e3af (patch) | |
| tree | ad0b767e80ef169ad319860274482ae0bbf8ab4c /include/linux/debugobjects.h | |
| parent | e5d2861f31474b373ce7754dc5122b414a176c64 (diff) | |
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 <[email protected]>
Looks-okay-to: Pavel Machek <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Cc: Len Brown <[email protected]>
Acked-by: Andi Kleen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions