cpu/x86/smm: Retype variables

Change-Id: I85750282ab274f52bc176a1ac151ef2f9e0dd15d
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58697
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
Arthur Heymans
2021-10-28 13:59:54 +02:00
committed by Kyösti Mälkki
parent a0696645b0
commit cfd3224197
3 changed files with 44 additions and 48 deletions

View File

@@ -777,7 +777,7 @@ static enum cb_err install_relocation_handler(int num_cpus, size_t real_save_sta
if (mp_state.ops.adjust_smm_params != NULL)
mp_state.ops.adjust_smm_params(&smm_params, 0);
if (smm_setup_relocation_handler((void *)perm_smbase, &smm_params)) {
if (smm_setup_relocation_handler(perm_smbase, &smm_params)) {
printk(BIOS_ERR, "%s: smm setup failed\n", __func__);
return CB_ERR;
}
@@ -813,7 +813,7 @@ static enum cb_err install_permanent_handler(int num_cpus, uintptr_t smbase,
printk(BIOS_DEBUG, "Installing permanent SMM handler to 0x%08lx\n", smbase);
if (smm_load_module((void *)smbase, smsize, &smm_params))
if (smm_load_module(smbase, smsize, &smm_params))
return CB_ERR;
adjust_smm_apic_id_map(&smm_params);