soc/amd/noncar/memmap.c: Support non-FSP use cases
Without FSP we assume TSEG is right above CBMEM. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I8700803617c3fe4890e497c6d7b94f1d36e21cb4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76472 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Martin L Roth <gaumless@gmail.com> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
f3cdd0110d
commit
2cb2b185da
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue