soc/amd: Rename smm_region_info() to smm_region()

Change-Id: I361fb0e02fd0bd92bb1e13fe84c898a1ac85aa40
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34703
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Kyösti Mälkki 2019-08-04 20:26:53 +03:00
parent dc6c322fda
commit 7db852aa57
7 changed files with 6 additions and 7 deletions

View File

@ -588,7 +588,6 @@ void restore_default_smm_area(void *smm_save_area);
* protections. e.g. TSEG. * protections. e.g. TSEG.
*/ */
void smm_region(void **start, size_t *size); void smm_region(void **start, size_t *size);
void smm_region_info(void **start, size_t *size);
enum { enum {
/* SMM handler area. */ /* SMM handler area. */

View File

@ -69,7 +69,7 @@ static void get_smm_info(uintptr_t *perm_smbase, size_t *perm_smsize,
size_t handler_size; size_t handler_size;
/* Initialize global tracking state. */ /* Initialize global tracking state. */
smm_region_info(&smm_base, &smm_size); smm_region(&smm_base, &smm_size);
smm_subregion(SMM_SUBREGION_HANDLER, &handler_base, &handler_size); smm_subregion(SMM_SUBREGION_HANDLER, &handler_base, &handler_size);
relo_attrs.smbase = (uint32_t)smm_base; relo_attrs.smbase = (uint32_t)smm_base;

View File

@ -91,7 +91,7 @@ void stage_cache_external_region(void **base, size_t *size)
} }
} }
void smm_region_info(void **start, size_t *size) void smm_region(void **start, size_t *size)
{ {
*start = (void *)smm_region_start(); *start = (void *)smm_region_start();
*size = smm_region_size(); *size = smm_region_size();

View File

@ -91,7 +91,7 @@ asmlinkage void car_stage_entry(void)
* when relocating the SMM handler as well as using the TSEG * when relocating the SMM handler as well as using the TSEG
* region for other purposes. * region for other purposes.
*/ */
smm_region_info(&smm_base, &smm_size); smm_region(&smm_base, &smm_size);
tseg_base = (uintptr_t)smm_base; tseg_base = (uintptr_t)smm_base;
postcar_frame_add_mtrr(&pcf, tseg_base, smm_size, MTRR_TYPE_WRBACK); postcar_frame_add_mtrr(&pcf, tseg_base, smm_size, MTRR_TYPE_WRBACK);

View File

@ -69,7 +69,7 @@ static void get_smm_info(uintptr_t *perm_smbase, size_t *perm_smsize,
size_t handler_size; size_t handler_size;
/* Initialize global tracking state. */ /* Initialize global tracking state. */
smm_region_info(&smm_base, &smm_size); smm_region(&smm_base, &smm_size);
smm_subregion(SMM_SUBREGION_HANDLER, &handler_base, &handler_size); smm_subregion(SMM_SUBREGION_HANDLER, &handler_base, &handler_size);
relo_attrs.smbase = (uint32_t)smm_base; relo_attrs.smbase = (uint32_t)smm_base;

View File

@ -91,7 +91,7 @@ void stage_cache_external_region(void **base, size_t *size)
} }
} }
void smm_region_info(void **start, size_t *size) void smm_region(void **start, size_t *size)
{ {
*start = (void *)smm_region_start(); *start = (void *)smm_region_start();
*size = smm_region_size(); *size = smm_region_size();

View File

@ -176,7 +176,7 @@ asmlinkage void car_stage_entry(void)
* when relocating the SMM handler as well as using the TSEG * when relocating the SMM handler as well as using the TSEG
* region for other purposes. * region for other purposes.
*/ */
smm_region_info(&smm_base, &smm_size); smm_region(&smm_base, &smm_size);
tseg_base = (uintptr_t)smm_base; tseg_base = (uintptr_t)smm_base;
postcar_frame_add_mtrr(&pcf, tseg_base, smm_size, MTRR_TYPE_WRBACK); postcar_frame_add_mtrr(&pcf, tseg_base, smm_size, MTRR_TYPE_WRBACK);