From ea2e210548c2267b1dab0ea5aba15c448bfd93fc Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 13 Jul 2023 18:32:40 +0200 Subject: [PATCH] soc/amd/genoa: Implement romstage The only thing romstage needs to do is find cbmem_top. TESTED: reaches ramstage. Signed-off-by: Arthur Heymans Change-Id: Ic2837c4a2b0ec8dcd9dd99602f9c073999c36139 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76514 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) Reviewed-by: Varshit Pandya --- src/soc/amd/genoa/romstage.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/soc/amd/genoa/romstage.c b/src/soc/amd/genoa/romstage.c index f4c5584c30..66a2140c07 100644 --- a/src/soc/amd/genoa/romstage.c +++ b/src/soc/amd/genoa/romstage.c @@ -1,10 +1,16 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include +#include +#include +#include #include -#include void __noreturn romstage_main(void) { - /* Needed for __noreturn */ - halt(); + post_code(POSTCODE_ROMSTAGE_MAIN); + + cbmem_initialize_empty(); + memmap_stash_early_dram_usage(); + run_ramstage(); }