diff options
author | Pierre-Clément Tosi <pierre-clement.tosi@arm.com> | 2019-03-29 17:31:42 +0000 |
---|---|---|
committer | jimqui01 <54316584+jimqui01@users.noreply.github.com> | 2020-05-13 12:48:44 +0100 |
commit | a86b21dbf49b0c825348ae348e74fc377459ccc1 (patch) | |
tree | 8b9e9beb57c53abd6383a2de69e85d358de197cb /product/sgm775 | |
parent | 03232c6b1f3d3f5ee023e4b5f689f2c5f17b88f3 (diff) |
sds: Move debug SDS structures to NS-RAM
Relocate the SDS structures used for debug to the NS-RAM to avoid the
risk of polluting non-debug behaviour (e.g. SDS region overflow).
Change-Id: I847a08417b42dff250951f541e861fef7261993c
Signed-off-by: Pierre-Clément Tosi <pierre-clement.tosi@arm.com>
Signed-off-by: Girish Pathak <girish.pathak@arm.com>
Diffstat (limited to 'product/sgm775')
-rw-r--r-- | product/sgm775/scp_romfw/config_sds.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/product/sgm775/scp_romfw/config_sds.c b/product/sgm775/scp_romfw/config_sds.c index e4dc427c..bf88489b 100644 --- a/product/sgm775/scp_romfw/config_sds.c +++ b/product/sgm775/scp_romfw/config_sds.c @@ -117,7 +117,7 @@ static const struct fwk_element sds_element_table[] = { .data = &((struct mod_sds_structure_desc) { .id = SGM775_SDS_CPU_BOOTCTR, .size = SGM775_SDS_CPU_BOOTCTR_SIZE, - .region_id = SGM775_SDS_REGION_SECURE, + .region_id = SGM775_SDS_REGION_NONSECURE, .finalize = true, }), }, @@ -126,7 +126,7 @@ static const struct fwk_element sds_element_table[] = { .data = &((struct mod_sds_structure_desc) { .id = SGM775_SDS_CPU_FLAGS, .size = SGM775_SDS_CPU_FLAGS_SIZE, - .region_id = SGM775_SDS_REGION_SECURE, + .region_id = SGM775_SDS_REGION_NONSECURE, .finalize = true, }), }, @@ -140,16 +140,13 @@ static_assert(SDS_SECURE_SIZE > SGM775_SDS_PLATFORM_ID_SIZE + SGM775_SDS_RESET_SYNDROME_SIZE + SGM775_SDS_BOOTLOADER_SIZE + -#ifdef BUILD_MODE_DEBUG - SGM775_SDS_CPU_BOOTCTR_SIZE + - SGM775_SDS_CPU_FLAGS_SIZE + -#endif SGM775_SDS_FEATURE_AVAILABILITY_SIZE, "SDS structures too large for SDS S-RAM.\n"); #ifdef BUILD_MODE_DEBUG static_assert(SDS_NONSECURE_SIZE > - -1, + SGM775_SDS_CPU_BOOTCTR_SIZE + + SGM775_SDS_CPU_FLAGS_SIZE, "SDS structures too large for SDS NS-RAM.\n"); #endif |