Commit d99c1ba6 authored by Xinwei Kong's avatar Xinwei Kong Committed by Ard Biesheuvel
Browse files

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: default avatarZou Cao <zoucao@linux.alibaba.com>
Signed-off-by: default avatarXinwei Kong <kong.kongxinwei@hisilicon.com>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 0d959814
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -189,6 +189,8 @@ unsigned long efi_entry(void *handle, efi_system_table_t *sys_table,
		goto fail_free_cmdline;
	}

	efi_retrieve_tpm2_eventlog(sys_table);

	/* Ask the firmware to clear memory on unclean shutdown */
	efi_enable_reset_attack_mitigation(sys_table);