mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-08 05:43:53 +00:00
fix(drtm): adjust Event Log size in DLME
Updated the code to ensure the Event Log in the DLME meets the minimum size requirement of 64KB, as specified in the specification. Change-Id: If0b179a97c0dca489edc0047da401bbb4ce09f39 Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
This commit is contained in:
parent
3c72b2ab0b
commit
63d2020f57
2 changed files with 9 additions and 4 deletions
|
@ -108,7 +108,7 @@ int drtm_setup(void)
|
|||
plat_drtm_get_imp_def_dlme_region_size();
|
||||
|
||||
dlme_data_min_size += dlme_data_hdr_init.dlme_addr_map_size +
|
||||
PLAT_DRTM_EVENT_LOG_MAX_SIZE +
|
||||
ARM_DRTM_MIN_EVENT_LOG_SIZE +
|
||||
dlme_data_hdr_init.dlme_tcb_hashes_table_size +
|
||||
dlme_data_hdr_init.dlme_impdef_region_size;
|
||||
|
||||
|
@ -282,9 +282,9 @@ static enum drtm_retc drtm_dl_prepare_dlme_data(const struct_drtm_dl_args *args)
|
|||
|
||||
/* Prepare DRTM event log for DLME. */
|
||||
drtm_serialise_event_log(dlme_data_cursor, &serialised_bytes_actual);
|
||||
assert(serialised_bytes_actual <= PLAT_DRTM_EVENT_LOG_MAX_SIZE);
|
||||
dlme_data_hdr->dlme_tpm_log_size = serialised_bytes_actual;
|
||||
dlme_data_cursor += serialised_bytes_actual;
|
||||
assert(serialised_bytes_actual <= ARM_DRTM_MIN_EVENT_LOG_SIZE);
|
||||
dlme_data_hdr->dlme_tpm_log_size = ARM_DRTM_MIN_EVENT_LOG_SIZE;
|
||||
dlme_data_cursor += dlme_data_hdr->dlme_tpm_log_size;
|
||||
|
||||
/*
|
||||
* TODO: Prepare the TCB hashes for DLME, currently its size
|
||||
|
|
|
@ -36,6 +36,11 @@
|
|||
#define DL_ARGS_GET_DLME_ENTRY_POINT(a) \
|
||||
(((a)->dlme_paddr + (a)->dlme_img_off + (a)->dlme_img_ep_off))
|
||||
|
||||
/*
|
||||
* Minimum size of Event Log in DLME data (64 KiB)
|
||||
*/
|
||||
#define ARM_DRTM_MIN_EVENT_LOG_SIZE U(0x10000)
|
||||
|
||||
/*
|
||||
* Range(Min/Max) of DRTM parameter structure versions supported
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue