drivers/amd/agesa/romstage.c: Move timestamp and console init up
Follow-up commits move this to a common place.
Change-Id: I26a37f9384a581a8a750efccc2100a5c6a6f0f85
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55066
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
diff --git a/src/drivers/amd/agesa/romstage.c b/src/drivers/amd/agesa/romstage.c
index 5968f73..ec798ee 100644
--- a/src/drivers/amd/agesa/romstage.c
+++ b/src/drivers/amd/agesa/romstage.c
@@ -38,17 +38,17 @@
struct sysinfo *cb = &romstage_state;
int cbmem_initted = 0;
- fill_sysinfo(cb);
-
timestamp_add_now(TS_ROMSTAGE_START);
- board_BeforeAgesa(cb);
-
console_init();
printk(BIOS_DEBUG, "APIC %02u: CPU Family_Model = %08x\n",
initial_lapicid(), cpuid_eax(1));
+ fill_sysinfo(cb);
+
+ board_BeforeAgesa(cb);
+
set_ap_entry_ptr(ap_romstage_main);
agesa_execute_state(cb, AMD_INIT_RESET);