21 size_t tcpa_log_len =
sizeof(
struct tcpa_table) +
40 !
CONFIG(VBOOT_RETURN_FROM_VERSTAGE))
43 !
CONFIG(VBOOT_RETURN_FROM_VERSTAGE)) {
80 enum vb2_hash_algorithm digest_algo,
82 const size_t digest_len)
110 vb2_get_hash_algorithm_name(digest_algo),
124 #if !CONFIG(VBOOT_RETURN_FROM_VERSTAGE)
void * memcpy(void *dest, const void *src, size_t n)
static int cbmem_possibly_online(void)
void * cbmem_add(u32 id, u64 size)
void * cbmem_find(u32 id)
#define CBMEM_ID_TCPA_LOG
#define printk(level,...)
void tcpa_preram_log_clear(void)
Clears the pre-RAM tcpa log data and initializes any content with default values.
ROMSTAGE_CBMEM_INIT_HOOK(recover_tcpa_log)
BOOT_STATE_INIT_ENTRY(BS_PAYLOAD_BOOT, BS_ON_ENTRY, tcpa_log_dump, NULL)
void tcpa_log_dump(void *unused)
Dump TCPA log entries on console.
static struct tcpa_table * tcpa_cbmem_init(void)
struct tcpa_table * tcpa_log_init(void)
Get the pointer to the single instance of global tcpa log data, and initialize it when necessary.
void tcpa_log_add_table_entry(const char *name, const uint32_t pcr, enum vb2_hash_algorithm digest_algo, const uint8_t *digest, const size_t digest_len)
Add table entry for cbmem TCPA log.
static void recover_tcpa_log(int is_recovery)
#define BIOS_INFO
BIOS_INFO - Expected events.
#define BIOS_WARNING
BIOS_WARNING - Bad configuration.
char * strncpy(char *to, const char *from, int count)
uint8_t digest[TCPA_DIGEST_MAX_LENGTH]
char name[TCPA_PCR_HASH_NAME]
char digest_type[TCPA_PCR_HASH_LEN]
struct tcpa_entry entries[0]
#define TCPA_DIGEST_MAX_LENGTH
#define MAX_PRERAM_TCPA_LOG_ENTRIES
#define MAX_TCPA_LOG_ENTRIES
#define TCPA_PCR_HASH_LEN
#define TCPA_PCR_HASH_NAME