From dcd6a10ea743d310fb089715964598e510f7fc15 Mon Sep 17 00:00:00 2001 From: iwasaki Date: Thu, 1 Aug 2002 09:48:01 +0000 Subject: Fix a bug about stack manipulation at ACPI wakeup. This should avoid kernel panic on kernel compiled w/o NO_CPU_COPTFLAGS. Suggested by: optimized code by -mcpu=pentiumpro --- sys/amd64/acpica/acpi_wakeup.c | 1 + sys/i386/acpica/acpi_wakeup.c | 1 + 2 files changed, 2 insertions(+) (limited to 'sys') diff --git a/sys/amd64/acpica/acpi_wakeup.c b/sys/amd64/acpica/acpi_wakeup.c index 4f595da..672174c 100644 --- a/sys/amd64/acpica/acpi_wakeup.c +++ b/sys/amd64/acpica/acpi_wakeup.c @@ -93,6 +93,7 @@ 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\ diff --git a/sys/i386/acpica/acpi_wakeup.c b/sys/i386/acpica/acpi_wakeup.c index 4f595da..672174c 100644 --- a/sys/i386/acpica/acpi_wakeup.c +++ b/sys/i386/acpica/acpi_wakeup.c @@ -93,6 +93,7 @@ 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\ -- cgit v1.1