From 21ba5eea89be9ee5019b3651814dfe148f16bc81 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Wed, 10 Jun 2020 10:52:24 +0300 Subject: arch/x86: Declare global_smi_enable() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The call made at mp_ops.post_mp_init() generally uses four different names. Unify these with followups. smm_southbridge_enable(SMI_EVENTS) smm_southbridge_enable_smi() hudson_enable_smi_generation() enable_smi_generation() Furthermore, some platforms do not enable power button SMI early. It may be preferred to delay the enablement, but fow now provide global_smi_enable_no_pwrbtn() too. Change-Id: I6a28883ff9c563289b0e8199cd2ceb9acd6bacda Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/42355 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Raul Rangel --- src/include/cpu/x86/smm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h index 67f958b8af..75c19a5cd5 100644 --- a/src/include/cpu/x86/smm.h +++ b/src/include/cpu/x86/smm.h @@ -38,6 +38,9 @@ int mainboard_io_trap_handler(int smif); void southbridge_smi_set_eos(void); +void global_smi_enable(void); +void global_smi_enable_no_pwrbtn(void); + void cpu_smi_handler(void); void northbridge_smi_handler(void); void southbridge_smi_handler(void); -- cgit v1.2.3