In order to accommodate tracking timestamps in all the __PRE_RAM__ stages (bootblock, verstage, romstage, etc) of a platform one needs to provide a way to specify a persistent region of SRAM or cache-as-ram to store the timestamps until cbmem comes online. Provide that infrastructure.
Based on original patches from chromium.org: Original-Change-Id: I4d78653c0595523eeeb02115423e7fecceea5e1e
1936f6c timestamp: add generic cache region
src/Kconfig | 9 ++
src/arch/x86/init/romstage.ld | 5 +
src/include/memlayout.h | 3 +
src/include/symbols.h | 4 +
src/include/timestamp.h | 13 ++
src/lib/timestamp.c | 261 ++++++++++++++++++++++++++++-------------
6 files changed, 216 insertions(+), 79 deletions(-)
Upstream: review.coreboot.org