mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 23:50:27 +00:00
Improve stack manipulation code of ACPI wakeup routine.
The new code just override stack top value with saved return address rather than pop/push operation. Submitted by: jhb
This commit is contained in:
parent
fb034d05ac
commit
be14b8e7ea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101459
|
@ -93,12 +93,12 @@ acpi_restorecpu: \n\
|
|||
movl r_esi,%esi \n\
|
||||
movl r_edi,%edi \n\
|
||||
movl r_esp,%esp \n\
|
||||
popl %eax \n\
|
||||
\n\
|
||||
pushl r_efl \n\
|
||||
popfl \n\
|
||||
\n\
|
||||
pushl ret_addr \n\
|
||||
movl ret_addr,%eax \n\
|
||||
movl %eax,(%esp) \n\
|
||||
xorl %eax,%eax \n\
|
||||
ret \n\
|
||||
\n\
|
||||
|
|
|
@ -93,12 +93,12 @@ acpi_restorecpu: \n\
|
|||
movl r_esi,%esi \n\
|
||||
movl r_edi,%edi \n\
|
||||
movl r_esp,%esp \n\
|
||||
popl %eax \n\
|
||||
\n\
|
||||
pushl r_efl \n\
|
||||
popfl \n\
|
||||
\n\
|
||||
pushl ret_addr \n\
|
||||
movl ret_addr,%eax \n\
|
||||
movl %eax,(%esp) \n\
|
||||
xorl %eax,%eax \n\
|
||||
ret \n\
|
||||
\n\
|
||||
|
|
Loading…
Reference in a new issue