summaryrefslogtreecommitdiffstats
path: root/sys/i386/acpica
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2002-08-07 12:48:28 +0000
committeriwasaki <iwasaki@FreeBSD.org>2002-08-07 12:48:28 +0000
commitc395ac01ee1e0f1bdeeb35db1c82395afb7f7e4a (patch)
tree14d01cae17febe55d1323b1d178e5dc19325f875 /sys/i386/acpica
parent582f479cac9ccb37efae491ad9bf188b471797df (diff)
downloadFreeBSD-src-c395ac01ee1e0f1bdeeb35db1c82395afb7f7e4a.zip
FreeBSD-src-c395ac01ee1e0f1bdeeb35db1c82395afb7f7e4a.tar.gz
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
Diffstat (limited to 'sys/i386/acpica')
-rw-r--r--sys/i386/acpica/acpi_wakeup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/acpica/acpi_wakeup.c b/sys/i386/acpica/acpi_wakeup.c
index 672174c..462243a 100644
--- a/sys/i386/acpica/acpi_wakeup.c
+++ b/sys/i386/acpica/acpi_wakeup.c
@@ -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\
OpenPOWER on IntegriCloud