aboutsummaryrefslogtreecommitdiffstats
path: root/bl1/bl1_main.c
diff options
context:
space:
mode:
authorZelalem <zelalem.aweke@arm.com>2020-02-12 10:37:03 -0600
committerZelalem <zelalem.aweke@arm.com>2020-02-18 10:47:46 -0600
commit2fe75a2de087ec23162c5fd25ba439bd330ea50c (patch)
tree8fdfe111e09b5de4d7495c03ea4cde6ba29ee2af /bl1/bl1_main.c
parent572fcdd547753d668ca1146ca420664ccc3ac6fb (diff)
downloadplatform_external_arm-trusted-firmware-2fe75a2de087ec23162c5fd25ba439bd330ea50c.tar.gz
platform_external_arm-trusted-firmware-2fe75a2de087ec23162c5fd25ba439bd330ea50c.tar.bz2
platform_external_arm-trusted-firmware-2fe75a2de087ec23162c5fd25ba439bd330ea50c.zip
coverity: fix MISRA violations
Fixes for the following MISRA violations: - Missing explicit parentheses on sub-expression - An identifier or macro name beginning with an underscore, shall not be declared - Type mismatch in BL1 SMC handlers and tspd_main.c Change-Id: I7a92abf260da95acb0846b27c2997b59b059efc4 Signed-off-by: Zelalem <zelalem.aweke@arm.com>
Diffstat (limited to 'bl1/bl1_main.c')
-rw-r--r--bl1/bl1_main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/bl1/bl1_main.c b/bl1/bl1_main.c
index bff8d22f5..e11ead608 100644
--- a/bl1/bl1_main.c
+++ b/bl1/bl1_main.c
@@ -226,11 +226,11 @@ void print_debug_loop_message(void)
/*******************************************************************************
* Top level handler for servicing BL1 SMCs.
******************************************************************************/
-register_t bl1_smc_handler(unsigned int smc_fid,
- register_t x1,
- register_t x2,
- register_t x3,
- register_t x4,
+u_register_t bl1_smc_handler(unsigned int smc_fid,
+ u_register_t x1,
+ u_register_t x2,
+ u_register_t x3,
+ u_register_t x4,
void *cookie,
void *handle,
unsigned int flags)
@@ -269,12 +269,12 @@ register_t bl1_smc_handler(unsigned int smc_fid,
* BL1 SMC wrapper. This function is only used in AArch32 mode to ensure ABI
* compliance when invoking bl1_smc_handler.
******************************************************************************/
-register_t bl1_smc_wrapper(uint32_t smc_fid,
+u_register_t bl1_smc_wrapper(uint32_t smc_fid,
void *cookie,
void *handle,
unsigned int flags)
{
- register_t x1, x2, x3, x4;
+ u_register_t x1, x2, x3, x4;
assert(handle != NULL);