From 2847e1e71495158f1af02465fd6083674d767897 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Mon, 25 Feb 2019 20:31:22 +0530 Subject: prog_loader: Associate TS_END_ROMSTAGE timestamp with postcar if exist This patch adds timestamp for "end of romstage" with postcar if platform has selected postcar as dedicated stage. If postcar stage doesn't exist then "end of romstage" timestamp will get call while starting of ramstage as exist today. TEST=It's been observed that "end of romstage" timestamp doesn't appear in "cbmem -t" log when ramstage is not getting executed. As part of this fix "end of romstage" timestamp is showing in "cbmem -t" log on Intel platform where POSTCAR is a dedicated stage. Change-Id: I17fd89296354b66a5538f85737c79145232593d3 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/31608 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/arch/x86/postcar_loader.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/arch') diff --git a/src/arch/x86/postcar_loader.c b/src/arch/x86/postcar_loader.c index 141e8d23ae..a36b90058f 100644 --- a/src/arch/x86/postcar_loader.c +++ b/src/arch/x86/postcar_loader.c @@ -23,6 +23,7 @@ #include #include #include +#include static inline void stack_push(struct postcar_frame *pcf, uint32_t val) { @@ -171,5 +172,8 @@ void run_postcar_phase(struct postcar_frame *pcf) } else load_postcar_cbfs(&prog, pcf); + /* As postcar exist, it's end of romstage here */ + timestamp_add_now(TS_END_ROMSTAGE); + prog_run(&prog); } -- cgit v1.2.3