diff options
author | iwasaki <iwasaki@FreeBSD.org> | 2002-08-07 12:48:28 +0000 |
---|---|---|
committer | iwasaki <iwasaki@FreeBSD.org> | 2002-08-07 12:48:28 +0000 |
commit | c395ac01ee1e0f1bdeeb35db1c82395afb7f7e4a (patch) | |
tree | 14d01cae17febe55d1323b1d178e5dc19325f875 /sys | |
parent | 582f479cac9ccb37efae491ad9bf188b471797df (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/amd64/acpica/acpi_wakeup.c | 4 | ||||
-rw-r--r-- | sys/i386/acpica/acpi_wakeup.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/acpica/acpi_wakeup.c b/sys/amd64/acpica/acpi_wakeup.c index 672174c..462243a 100644 --- a/sys/amd64/acpica/acpi_wakeup.c +++ b/sys/amd64/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\ 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\ |