Browse Source

refactor(fvp): update RSS driver inteface calls

In order to comply with the previous RSS driver change,
interface calls have been updated.

Change-Id: I0a1f3c6a6f8017468d86903cc0158805c6461c28
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
pull/1999/head
Manish V Badarkhe 1 year ago
parent
commit
a99a378d0a
  1. 4
      plat/arm/board/fvp/fvp_bl1_measured_boot.c
  2. 2
      plat/arm/board/fvp/fvp_bl2_measured_boot.c
  3. 10
      plat/arm/board/fvp/fvp_common_measured_boot.c

4
plat/arm/board/fvp/fvp_bl1_measured_boot.c

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2022, Arm Limited. All rights reserved.
* Copyright (c) 2021-2023, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -54,7 +54,7 @@ void bl1_plat_mboot_init(void)
event_log_init(event_log, event_log + sizeof(event_log));
event_log_write_header();
rss_measured_boot_init();
rss_measured_boot_init(fvp_rss_mboot_metadata);
}
void bl1_plat_mboot_finish(void)

2
plat/arm/board/fvp/fvp_bl2_measured_boot.c

@ -117,7 +117,7 @@ void bl2_plat_mboot_init(void)
event_log_init((uint8_t *)event_log_start, event_log_finish);
rss_measured_boot_init();
rss_measured_boot_init(fvp_rss_mboot_metadata);
}
int plat_mboot_measure_critical_data(unsigned int critical_data_id,

10
plat/arm/board/fvp/fvp_common_measured_boot.c

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2022, Arm Limited. All rights reserved.
* Copyright (c) 2021-2023, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@ -16,11 +16,6 @@
extern event_log_metadata_t fvp_event_log_metadata[];
extern struct rss_mboot_metadata fvp_rss_mboot_metadata[];
struct rss_mboot_metadata *plat_rss_mboot_get_metadata(void)
{
return fvp_rss_mboot_metadata;
}
int plat_mboot_measure_image(unsigned int image_id, image_info_t *image_data)
{
int err;
@ -38,7 +33,8 @@ int plat_mboot_measure_image(unsigned int image_id, image_info_t *image_data)
}
/* Calculate image hash and record data in RSS */
err = rss_mboot_measure_and_record(image_data->image_base,
err = rss_mboot_measure_and_record(fvp_rss_mboot_metadata,
image_data->image_base,
image_data->image_size,
image_id);
if (err != 0) {

Loading…
Cancel
Save