aboutsummaryrefslogtreecommitdiff
path: root/src/lib/hardwaremain.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-08-22 15:06:50 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-09-11 04:57:12 +0000
commit3dd23a5e72572dd164b3edfae210287b97235c56 (patch)
tree5099b80217152255f576560e178bf34f2970c338 /src/lib/hardwaremain.c
parent98e338ee869f089a04b910230e5d852c3f1a0da5 (diff)
timestamps: Improve collection for ENV_ROMSTAGE_OR_BEFORE
Keep track of the active timestamp table location using a CAR_GLOBAL variable. Done this way, the entire table can be located outside _car_relocatable_data and we only switch the pointer to CBMEM and copy the data before CAR gets torn down. Fix comments about requirements of timestamp_init() usage. Remove timestamp_cache from postcar and ramstage, as CBMEM is available early on. Change-Id: I87370f62db23318069b6fd56ba0d1171d619cb8a Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35032 Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/lib/hardwaremain.c')
-rw-r--r--src/lib/hardwaremain.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/hardwaremain.c b/src/lib/hardwaremain.c
index a4c154e7a8..2ff2b8c874 100644
--- a/src/lib/hardwaremain.c
+++ b/src/lib/hardwaremain.c
@@ -461,9 +461,6 @@ void main(void)
*/
cbmem_initialize();
- /* Record current time, try to locate timestamps in CBMEM. */
- timestamp_init(timestamp_get());
-
timestamp_add_now(TS_START_RAMSTAGE);
post_code(POST_ENTRY_RAMSTAGE);