]> xenbits.xensource.com Git - seabios.git/commitdiff
smm: remove code to handle ACPI disable/enable
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 15 May 2014 11:22:27 +0000 (13:22 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 20 May 2014 10:15:30 +0000 (12:15 +0200)
This is handled already in QEMU, no need to do it in SMM.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/fw/smm.c

index 1032ffbfd632a5a7febfea9c9f0c402e02dd5591..5ae6f324601c5f75cd3e47109a62a9e019700890 100644 (file)
@@ -45,34 +45,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"