summaryrefslogtreecommitdiff
path: root/src/include/bootblock_common.h
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2018-05-15 17:48:30 -0700
committerJulius Werner <jwerner@chromium.org>2018-05-22 02:39:11 +0000
commit12574dd72b7b0e7e59ac1b071d581f78cd8f01ad (patch)
tree812cce3b7cee495f65524a60943561ec9a9bc8d5 /src/include/bootblock_common.h
parent1ca26664e60372cb66104b4c448a442a472f7b8a (diff)
downloadcoreboot-12574dd72b7b0e7e59ac1b071d581f78cd8f01ad.tar.xz
bootblock: Allow more timestamps in bootblock_main_with_timestamp()
This patch adds more parameters to bootblock_main_with_timestamp() to give callers the opportunity to add additional timestamps that were recorded in the platform-specific initialization phase. Change-Id: Idf3a0fcf5aee88a33747afc69e055b95bd38750c Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/26339 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/include/bootblock_common.h')
-rw-r--r--src/include/bootblock_common.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/include/bootblock_common.h b/src/include/bootblock_common.h
index 6ede77c965..fa67098111 100644
--- a/src/include/bootblock_common.h
+++ b/src/include/bootblock_common.h
@@ -18,7 +18,8 @@
#include <arch/cpu.h>
#include <main_decl.h>
-#include <stdint.h>
+#include <timestamp.h>
+#include <types.h>
/*
* These are defined as weak no-ops that can be overridden by mainboard/SoC.
@@ -37,12 +38,13 @@ asmlinkage void bootblock_c_entry(uint64_t base_timestamp);
/*
* This is a the same as the bootblock main(), with the difference that it does
- * not collect a timestamp. Instead it accepts the first timestamp as an
- * argument. This can be used in cases where an earlier stamp is available
- * Note that this function is designed to be entered from C code.
- * This function assumes that the timer has already been initialized, so it
- * does not call init_timer().
+ * not collect a timestamp. Instead it accepts the initial timestamp and
+ * possibly additional timestamp entries as arguments. This can be used in cases
+ * where earlier stamps are available. Note that this function is designed to be
+ * entered from C code. This function assumes that the timer has already been
+ * initialized, so it does not call init_timer().
*/
-asmlinkage void bootblock_main_with_timestamp(uint64_t base_timestamp);
+asmlinkage void bootblock_main_with_timestamp(uint64_t base_timestamp,
+ struct timestamp_entry *timestamps, size_t num_timestamps);
#endif /* __BOOTBLOCK_COMMON_H */