summaryrefslogtreecommitdiff
path: root/src/lib/timestamp.c
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2016-08-02 11:19:53 -0700
committerFurquan Shaikh <furquan@google.com>2016-08-04 03:27:08 +0200
commite85de02fd41abe2533771128c535da5187ddf275 (patch)
tree949d066ed4e9dcb013b1d84143d0c5373008384f /src/lib/timestamp.c
parentb9eee8e468a78789dce8d5af12274fc0dc2d5007 (diff)
downloadcoreboot-e85de02fd41abe2533771128c535da5187ddf275.tar.xz
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 TEST=Verified that timestamps added in postcar show up in cbmem -t. Change-Id: I64af8c1e67b107d9adb09de57c20ea728981f07c Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/16032 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/lib/timestamp.c')
-rw-r--r--src/lib/timestamp.c2
1 files changed, 1 insertions, 1 deletions
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;