From 21e609c1c92c47bd8990c2ce25adf5987b5dd1b2 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Thu, 9 Mar 2017 20:08:15 +0200 Subject: AGESA: Move romstage-ramstage splitline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In AGESA specification AmdInitEnv() is to be called once host memory allocator has started. In coreboot context this could mean either availability of CBMEM or malloc heap. As for AmdS3LateRestore(), there is no requirement to have it run as part of the romstage either. Change-Id: Icc8d97b82df89e2480e601d5c2e094de0365b0a5 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/18888 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/cpu/amd/agesa/romstage.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/cpu/amd') diff --git a/src/cpu/amd/agesa/romstage.c b/src/cpu/amd/agesa/romstage.c index fc4a0b488c..54ef602d20 100644 --- a/src/cpu/amd/agesa/romstage.c +++ b/src/cpu/amd/agesa/romstage.c @@ -109,15 +109,8 @@ void asmlinkage romstage_after_car(void) fill_sysinfo(cb); - if (!HAS_LEGACY_WRAPPER) { - if (!cb->s3resume) - agesa_execute_state(cb, AMD_INIT_ENV); - else - agesa_execute_state(cb, AMD_S3LATE_RESTORE); - } else { - + if (HAS_LEGACY_WRAPPER) agesa_postcar(cb); - } if (cb->s3resume) set_resume_cache(); -- cgit v1.2.3