cpu/x86/smm: Define APM_CNT_NOOP_SMI

Old (!PARALLEL_MP) cpu bringup uses this as the first
control to do SMM relocation.

Change-Id: I4241120b00fac77f0491d37f05ba17763db1254e
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42617
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Kyösti Mälkki 2020-06-18 13:51:31 +03:00 committed by Patrick Georgi
parent 3fccec5322
commit d15183144a
5 changed files with 5 additions and 4 deletions

View File

@ -17,6 +17,7 @@
#define SMM_SAVE_STATE_BEGIN(x) (SMM_ENTRY_OFFSET + (x))
#define APM_CNT 0xb2
#define APM_CNT_NOOP_SMI 0x00
#define APM_CNT_CST_CONTROL 0x85
#define APM_CNT_PST_CONTROL 0x80
#define APM_CNT_ACPI_DISABLE 0x1e

View File

@ -72,7 +72,7 @@ static void __unused southbridge_trigger_smi(void)
/* raise an SMI interrupt */
printk(BIOS_SPEW, " ... raise SMI#\n");
outb(0x00, 0xb2);
apm_control(APM_CNT_NOOP_SMI);
}
static void __unused southbridge_clear_smi_status(void)

View File

@ -293,7 +293,7 @@ static void aseg_smm_relocate(void)
/* raise an SMI interrupt */
printk(BIOS_SPEW, " ... raise SMI#\n");
outb(0x00, 0xb2);
apm_control(APM_CNT_NOOP_SMI);
}
static void aseg_smm_install(void)

View File

@ -100,7 +100,7 @@ static void aseg_smm_relocate(void)
/* raise an SMI interrupt */
printk(BIOS_SPEW, " ... raise SMI#\n");
outb(0x00, 0xb2);
apm_control(APM_CNT_NOOP_SMI);
}
static int smm_handler_copied = 0;

View File

@ -75,7 +75,7 @@ static void __unused southbridge_trigger_smi(void)
/* raise an SMI interrupt */
printk(BIOS_SPEW, " ... raise SMI#\n");
outb(0x00, 0xb2);
apm_control(APM_CNT_NOOP_SMI);
}
static void __unused southbridge_clear_smi_status(void)