arch/x86: Change smm_subregion() prototype
Do this to avoid some amount of explicit typecasting that would be required otherwise. Change-Id: I5bc2c3c1dd579f7c6c3d3354c0691e4ba3c778e1 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34706 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
@@ -53,7 +53,7 @@ void raminit(struct romstage_params *params)
|
||||
UPD_DATA_REGION *upd_ptr;
|
||||
int fsp_verification_failure = 0;
|
||||
EFI_PEI_HOB_POINTERS hob_ptr;
|
||||
char *smm_base;
|
||||
uintptr_t smm_base;
|
||||
size_t smm_size;
|
||||
|
||||
/*
|
||||
@@ -148,9 +148,9 @@ void raminit(struct romstage_params *params)
|
||||
|
||||
/* Display SMM area */
|
||||
if (CONFIG(HAVE_SMI_HANDLER)) {
|
||||
smm_region((void **)&smm_base, &smm_size);
|
||||
smm_region(&smm_base, &smm_size);
|
||||
printk(BIOS_DEBUG, "0x%08x: smm_size\n", (unsigned int)smm_size);
|
||||
printk(BIOS_DEBUG, "0x%p: smm_base\n", smm_base);
|
||||
printk(BIOS_DEBUG, "0x%08x: smm_base\n", (unsigned int)smm_base);
|
||||
}
|
||||
|
||||
/* Migrate CAR data */
|
||||
@@ -238,7 +238,7 @@ void raminit(struct romstage_params *params)
|
||||
printk(BIOS_ERR, "ERROR - Reserving FSP memory area!\n");
|
||||
|
||||
if (CONFIG(HAVE_SMI_HANDLER) && cbmem_root != NULL) {
|
||||
size_t delta_bytes = (unsigned int)smm_base
|
||||
size_t delta_bytes = smm_base
|
||||
- cbmem_root->PhysicalStart
|
||||
- cbmem_root->ResourceLength;
|
||||
printk(BIOS_ERR,
|
||||
|
@@ -33,19 +33,19 @@ __weak void soc_after_silicon_init(void)
|
||||
/* Display SMM memory map */
|
||||
static void smm_memory_map(void)
|
||||
{
|
||||
void *base;
|
||||
uintptr_t base;
|
||||
size_t size;
|
||||
int i;
|
||||
|
||||
printk(BIOS_SPEW, "SMM Memory Map\n");
|
||||
|
||||
smm_region(&base, &size);
|
||||
printk(BIOS_SPEW, "SMRAM : %p 0x%zx\n", base, size);
|
||||
printk(BIOS_SPEW, "SMRAM : 0x%zx 0x%zx\n", base, size);
|
||||
|
||||
for (i = 0; i < SMM_SUBREGION_NUM; i++) {
|
||||
if (smm_subregion(i, &base, &size))
|
||||
continue;
|
||||
printk(BIOS_SPEW, " Subregion %d: %p 0x%zx\n", i, base, size);
|
||||
printk(BIOS_SPEW, " Subregion %d: 0x%zx 0x%zx\n", i, base, size);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user