[SeaBIOS] [PATCH 2/5] smm: remove code to handle ACPI disable/enable

Paolo Bonzini pbonzini at redhat.com
Thu May 15 13:22:27 CEST 2014


This is handled already in QEMU, no need to do it in SMM.

Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
---
 src/fw/smm.c | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/src/fw/smm.c b/src/fw/smm.c
index 4176e0c..07f9234 100644
--- a/src/fw/smm.c
+++ b/src/fw/smm.c
@@ -46,34 +46,9 @@ ASM32FLAT(
 
 extern u8 smm_code_start, smm_code_end;
 ASM32FLAT(
-    /* minimal SMM code to enable or disable ACPI */
     ".global smm_code_start, smm_code_end\n"
     "  .code16gcc\n"
     "smm_code_start:\n"
-    "  movw $" __stringify(PORT_SMI_CMD) ", %dx\n"
-    "  inb %dx, %al\n"
-    "  cmpb $0xf0, %al\n"
-    "  jne 1f\n"
-
-    /* ACPI disable */
-    "  movw $" __stringify(PORT_ACPI_PM_BASE) " + 0x04, %dx\n" /* PMCNTRL */
-    "  inw %dx, %ax\n"
-    "  andw $~1, %ax\n"
-    "  outw %ax, %dx\n"
-
-    "  jmp 2f\n"
-
-    "1:\n"
-    "  cmpb $0xf1, %al\n"
-    "  jne 2f\n"
-
-    /* ACPI enable */
-    "  movw $" __stringify(PORT_ACPI_PM_BASE) " + 0x04, %dx\n" /* PMCNTRL */
-    "  inw %dx, %ax\n"
-    "  orw $1, %ax\n"
-    "  outw %ax, %dx\n"
-
-    "2:\n"
     "  rsm\n"
     "smm_code_end:\n"
     "  .code32\n"
-- 
1.9.0





More information about the SeaBIOS mailing list