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:
Mitsuru IWASAKI 2002-08-07 12:48:28 +00:00
parent fb034d05ac
commit be14b8e7ea
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101459
2 changed files with 4 additions and 4 deletions

View file

@ -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\

View file

@ -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\