security/tpm/tspi: Fix preram TPM log max entries
Pre-RAM TPM logs use a separate define for the max number of logs. This one fits into the 2 KiB region assigned to TPM_LOG in the CAR linker script. Change-Id: Idda08a33c4a29fcb50085ca93487585dedf11012 Signed-off-by: Jeremy Soller <jeremy@system76.com> Signed-off-by: Tim Crawford <tcrawford@system76.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/73296 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
parent
81943646e3
commit
c77c7f0a7d
|
@ -98,7 +98,7 @@ void tpm_cb_preram_log_clear(void)
|
||||||
{
|
{
|
||||||
printk(BIOS_INFO, "TPM LOG: clearing preram log\n");
|
printk(BIOS_INFO, "TPM LOG: clearing preram log\n");
|
||||||
struct tpm_cb_log_table *tclt = (struct tpm_cb_log_table *)_tpm_log;
|
struct tpm_cb_log_table *tclt = (struct tpm_cb_log_table *)_tpm_log;
|
||||||
tclt->max_entries = MAX_TPM_LOG_ENTRIES;
|
tclt->max_entries = MAX_PRERAM_TPM_LOG_ENTRIES;
|
||||||
tclt->num_entries = 0;
|
tclt->num_entries = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue