From b2923e5fa975e9b9f86276a3aa61dd6967e8f6f1 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Tue, 2 Aug 2016 11:19:53 -0700 Subject: [PATCH] UPSTREAM: lib/timestamp: Add timestamps to CBMEM in POSTCAR stage POSTCAR stage has cbmem online. So, all timestamps need to be added to cbmem timestamp region. BUG=chrome-os-partner:55848 BRANCH=None TEST=Verified that timestamps added in postcar show up in cbmem -t. Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/16032 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Change-Id: I64af8c1e67b107d9adb09de57c20ea728981f07c Reviewed-on: https://chromium-review.googlesource.com/368090 Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-by: Aaron Durbin --- src/lib/timestamp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/timestamp.c b/src/lib/timestamp.c index 372076c42d..d8b93f9755 100644 --- a/src/lib/timestamp.c +++ b/src/lib/timestamp.c @@ -49,7 +49,7 @@ DECLARE_OPTIONAL_REGION(timestamp); /* The cache location will sit in BSS when in ramstage. */ #define TIMESTAMP_CACHE_IN_BSS ENV_RAMSTAGE -#define HAS_CBMEM (ENV_ROMSTAGE || ENV_RAMSTAGE) +#define HAS_CBMEM (ENV_ROMSTAGE || ENV_RAMSTAGE || ENV_POSTCAR) /* Storage of cache entries during ramstage prior to cbmem coming online. */ static struct timestamp_cache timestamp_cache;