summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/smm
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2018-12-03 16:13:17 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-12-05 13:31:22 +0000
commit9fca297ca44eb388229523f820f57f795b49af15 (patch)
tree34ee372b26574117b17fe0ca6007596b7671dc00 /src/soc/intel/common/block/smm
parentd61839c3ea6dd5e35f680ce56b9e2f8247833116 (diff)
smmstore: make smmstore's SMM handler code follow everything else
Instead of SMMSTORE_APM_CNT use APM_CNT_SMMSTORE and define it in cpu/x86/smm.h Change-Id: Iabc0c9662284ed3ac2933001e64524011a5bf420 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/30023 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/common/block/smm')
-rw-r--r--src/soc/intel/common/block/smm/smihandler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/common/block/smm/smihandler.c b/src/soc/intel/common/block/smm/smihandler.c
index 093c50eb6b..2ffc00f9d0 100644
--- a/src/soc/intel/common/block/smm/smihandler.c
+++ b/src/soc/intel/common/block/smm/smihandler.c
@@ -301,7 +301,7 @@ static void southbridge_smi_store(
void *io_smi;
uint32_t reg_ebx;
- io_smi = find_save_state(save_state_ops, SMMSTORE_APM_CNT);
+ io_smi = find_save_state(save_state_ops, APM_CNT_SMMSTORE);
if (!io_smi)
return;
/* Command and return value in EAX */
@@ -391,7 +391,7 @@ void smihandler_southbridge_apmc(
if (IS_ENABLED(CONFIG_ELOG_GSMI))
southbridge_smi_gsmi(save_state_ops);
break;
- case SMMSTORE_APM_CNT:
+ case APM_CNT_SMMSTORE:
if (IS_ENABLED(CONFIG_SMMSTORE))
southbridge_smi_store(save_state_ops);
break;