mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00
feat(handoff): common API for TPM event log handoff
Create a common BL2 API to add a TE for TPM event log. Change-Id: I459e70f40069aa9ea0625977e0bad8ec316439e6 Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
This commit is contained in:
parent
9821775657
commit
4d8b4ca0f5
2 changed files with 21 additions and 0 deletions
|
@ -299,6 +299,16 @@ int bl2_plat_handle_post_image_load(unsigned int image_id);
|
|||
#if (MEASURED_BOOT || DICE_PROTECTION_ENVIRONMENT)
|
||||
void bl2_plat_mboot_init(void);
|
||||
void bl2_plat_mboot_finish(void);
|
||||
#if TRANSFER_LIST
|
||||
int plat_handoff_mboot(const void *data, uint32_t data_size, void *tl_base);
|
||||
#else
|
||||
static inline int
|
||||
plat_handoff_mboot(__unused const void *data, __unused uint32_t data_size,
|
||||
__unused void *tl_base)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
static inline void bl2_plat_mboot_init(void)
|
||||
{
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include <arch_helpers.h>
|
||||
#include <common/bl_common.h>
|
||||
#include <common/debug.h>
|
||||
#include <lib/transfer_list.h>
|
||||
#include <lib/xlat_tables/xlat_tables_compat.h>
|
||||
#include <plat/common/platform.h>
|
||||
#include <services/arm_arch_svc.h>
|
||||
|
@ -129,3 +130,13 @@ void __init setup_page_tables(const mmap_region_t *bl_regions,
|
|||
/* Create the page tables to reflect the above mappings */
|
||||
init_xlat_tables();
|
||||
}
|
||||
|
||||
#if ((MEASURED_BOOT || DICE_PROTECTION_ENVIRONMENT) && TRANSFER_LIST)
|
||||
int plat_handoff_mboot(const void *data, uint32_t data_size, void *tl_base)
|
||||
{
|
||||
if (!transfer_list_add(tl_base, TL_TAG_TPM_EVLOG, data_size, data))
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue