summaryrefslogtreecommitdiff
path: root/src/commonlib
diff options
context:
space:
mode:
authorBora Guvendik <bora.guvendik@intel.com>2021-11-22 16:03:39 -0800
committerFelix Held <felix-coreboot@felixheld.de>2022-01-21 22:42:19 +0000
commitbf73c498d448678fd19354d66c03d852fcb5ec1d (patch)
tree68678157308ff8e00a2dc067b44a6378aa90fbd8 /src/commonlib
parentf33c9bf79a8ee80067920d7dd0ec15360b42703b (diff)
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 <bora.guvendik@intel.com> Change-Id: I90afc13a8e92693d86e3358f05e0a0cb7cdbca9b Reviewed-on: https://review.coreboot.org/c/coreboot/+/59554 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/commonlib')
-rw-r--r--src/commonlib/include/commonlib/timestamp_serialized.h2
1 files changed, 1 insertions, 1 deletions
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 {