From bf73c498d448678fd19354d66c03d852fcb5ec1d Mon Sep 17 00:00:00 2001 From: Bora Guvendik Date: Mon, 22 Nov 2021 16:03:39 -0800 Subject: timestamp: Allow timestamp_add to accept a negative number Change timestamp_add to accept negative values for events that took place before coreboot started executing. TEST=Boot to OS, check cbmem -t Signed-off-by: Bora Guvendik Change-Id: I90afc13a8e92693d86e3358f05e0a0cb7cdbca9b Reviewed-on: https://review.coreboot.org/c/coreboot/+/59554 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner Reviewed-by: Subrata Banik Reviewed-by: Tim Wawrzynczak --- src/commonlib/include/commonlib/timestamp_serialized.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commonlib/include') diff --git a/src/commonlib/include/commonlib/timestamp_serialized.h b/src/commonlib/include/commonlib/timestamp_serialized.h index 3d518b77b2..5c5e56b071 100644 --- a/src/commonlib/include/commonlib/timestamp_serialized.h +++ b/src/commonlib/include/commonlib/timestamp_serialized.h @@ -7,7 +7,7 @@ struct timestamp_entry { uint32_t entry_id; - uint64_t entry_stamp; + int64_t entry_stamp; } __packed; struct timestamp_table { -- cgit v1.2.3