aboutsummaryrefslogtreecommitdiff
path: root/product/rdn1e1
diff options
context:
space:
mode:
authorPierre-Clément Tosi <pierre-clement.tosi@arm.com>2019-04-04 18:25:50 +0100
committerronald-cron-arm <39518861+ronald-cron-arm@users.noreply.github.com>2019-06-04 12:00:11 +0200
commit04303cf47c29d39fb5ae556463b4ee3a8fc8b38b (patch)
treef68185ecce6322647bd7a5f4f7ca83b711c2e451 /product/rdn1e1
parentdeb43ea60b9845173e0b17170bc20fb32477136f (diff)
sds: Type, CPP #ifdef, and assert fixes
Change the type of the SDS memory address from uint8_t* to char* as the char type represents the smallest addressable amount of memory and the type of the memory content is not relevant. Fix the type of an error variable from unsigned int to int. Move from BUILD_MODE_DEBUG to BUILD_HAS_MOD_TEST for #ifdef-based conditionally existing SDS structures, whose sole purpose is testing. Replace the assert() function by the framework defined fwk_assert() function. Add volatile qualifier to pointers to the SDS memory region as other agents (AP) can access that region. Replace calls to memset() and memcpy() when using volatile pointers. Fix the indentation of get_structure_info(). Change-Id: Ibd48053c202de28d41f4bd1c29ad7fbc2d5f27ba Signed-off-by: Pierre-Clément Tosi <pierre-clement.tosi@arm.com>
Diffstat (limited to 'product/rdn1e1')
-rw-r--r--product/rdn1e1/scp_ramfw/config_sds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/product/rdn1e1/scp_ramfw/config_sds.c b/product/rdn1e1/scp_ramfw/config_sds.c
index 3590fe99..db795fba 100644
--- a/product/rdn1e1/scp_ramfw/config_sds.c
+++ b/product/rdn1e1/scp_ramfw/config_sds.c
@@ -68,7 +68,7 @@ static struct fwk_element sds_element_table[] = {
.finalize = true,
}),
},
-#ifdef BUILD_MODE_DEBUG
+#ifdef BUILD_HAS_MOD_TEST
{
.name = "Boot Counters",
.data = &((struct mod_sds_structure_desc) {