Skip to content

Commit d99c1ba

Browse files
Xinwei Kongardbiesheuvel
authored andcommitted
efi: libstub/tpm: enable tpm eventlog function for ARM platforms
Wire up the existing code for ARM that loads the TPM event log into OS accessible buffers while running the EFI stub so that the kernel proper can access it at runtime. Tested-by: Zou Cao <[email protected]> Signed-off-by: Xinwei Kong <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]>
1 parent 0d95981 commit d99c1ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/firmware/efi/libstub/arm-stub.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ unsigned long efi_entry(void *handle, efi_system_table_t *sys_table,
189189
goto fail_free_cmdline;
190190
}
191191

192+
efi_retrieve_tpm2_eventlog(sys_table);
193+
192194
/* Ask the firmware to clear memory on unclean shutdown */
193195
efi_enable_reset_attack_mitigation(sys_table);
194196

0 commit comments

Comments
 (0)