diff options
-rw-r--r-- | src/soc/amd/common/block/cpu/noncar/memmap.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/cpu/noncar/memmap.c b/src/soc/amd/common/block/cpu/noncar/memmap.c index b0e4bcb2c6..e21cff8a3c 100644 --- a/src/soc/amd/common/block/cpu/noncar/memmap.c +++ b/src/soc/amd/common/block/cpu/noncar/memmap.c @@ -35,7 +35,12 @@ void smm_region(uintptr_t *start, size_t *size) { static int once; - fsp_get_smm_region(start, size); + if (CONFIG(PLATFORM_USES_FSP2_0)) { + fsp_get_smm_region(start, size); + } else { + *start = (uintptr_t)cbmem_top(); + *size = CONFIG_SMM_TSEG_SIZE; + } if (!once) { clear_tvalid(); |