security/tpm: Improve TCPA log generation

* Make tcpa_log_init static and move init code into
the tcpa_log_add_table_entry routine.
* Add more checks for log initialization.
* Fix minor issues

Change-Id: I215d79eed7ad17c6ab87f0c4b14a282e519ef07d
Signed-off-by: Philipp Deppenwiese <zaolin@das-labor.org>
Reviewed-on: https://review.coreboot.org/27769
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Philipp Deppenwiese
2018-08-01 06:26:00 +02:00
committed by Philipp Deppenwiese
parent 0a0340e42e
commit bce49c2304
5 changed files with 26 additions and 34 deletions

View File

@ -30,9 +30,6 @@ static void init_tpm_dev(void *unused)
#else
tpm_setup(false);
#endif
// TCPA cbmem log
tcpa_log_init();
}
BOOT_STATE_INIT_ENTRY(BS_DEV_INIT, BS_ON_ENTRY, init_tpm_dev, NULL);