elog: make elog's SMM handler code follow everything else
Instead of ELOG_GSMI_APM_CNT use APM_CNT_ELOG_GSMI and define it in cpu/x86/smm.h Change-Id: I3a3e2f823c91b475d1e15b8c20e9cf5f3fd9de83 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/30022 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -279,7 +279,7 @@ static void southbridge_smi_gsmi(
|
||||
void *io_smi = NULL;
|
||||
uint32_t reg_ebx;
|
||||
|
||||
io_smi = find_save_state(save_state_ops, ELOG_GSMI_APM_CNT);
|
||||
io_smi = find_save_state(save_state_ops, APM_CNT_ELOG_GSMI);
|
||||
if (!io_smi)
|
||||
return;
|
||||
/* Command and return value in EAX */
|
||||
@@ -387,7 +387,7 @@ void smihandler_southbridge_apmc(
|
||||
printk(BIOS_DEBUG, "SMI#: Setting GNVS to %p\n", gnvs);
|
||||
}
|
||||
break;
|
||||
case ELOG_GSMI_APM_CNT:
|
||||
case APM_CNT_ELOG_GSMI:
|
||||
if (IS_ENABLED(CONFIG_ELOG_GSMI))
|
||||
southbridge_smi_gsmi(save_state_ops);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user