aboutsummaryrefslogtreecommitdiffstats
path: root/include/arch/aarch64/arch.h
diff options
context:
space:
mode:
authorJohn Powell <john.powell@arm.com>2020-03-20 14:21:05 -0500
committerjohpow01 <john.powell@arm.com>2020-04-03 16:20:59 -0500
commit3443a7027d78a9ccebc6940f0a69300ec7c1ed44 (patch)
tree079c29b2f19a0009fdf7dbe2aa6727f920009a93 /include/arch/aarch64/arch.h
parent0f99bf32df156b7b87454278b049c65221eeeb84 (diff)
downloadplatform_external_arm-trusted-firmware-3443a7027d78a9ccebc6940f0a69300ec7c1ed44.tar.gz
platform_external_arm-trusted-firmware-3443a7027d78a9ccebc6940f0a69300ec7c1ed44.tar.bz2
platform_external_arm-trusted-firmware-3443a7027d78a9ccebc6940f0a69300ec7c1ed44.zip
Fix MISRA C issues in BL1/BL2/BL31
Attempts to address MISRA compliance issues in BL1, BL2, and BL31 code. Mainly issues like not using boolean expressions in conditionals, conflicting variable names, ignoring return values without (void), adding explicit casts, etc. Change-Id: If1fa18ab621b9c374db73fa6eaa6f6e5e55c146a Signed-off-by: John Powell <john.powell@arm.com>
Diffstat (limited to 'include/arch/aarch64/arch.h')
-rw-r--r--include/arch/aarch64/arch.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/arch/aarch64/arch.h b/include/arch/aarch64/arch.h
index 2b2c11652..19dd8c5e3 100644
--- a/include/arch/aarch64/arch.h
+++ b/include/arch/aarch64/arch.h
@@ -264,8 +264,8 @@
(U(1) << 22) | (U(1) << 18) | (U(1) << 16) | \
(U(1) << 11) | (U(1) << 5) | (U(1) << 4))
-#define SCTLR_EL1_RES1 ((U(1) << 29) | (U(1) << 28) | (U(1) << 23) | \
- (U(1) << 22) | (U(1) << 20) | (U(1) << 11))
+#define SCTLR_EL1_RES1 ((UL(1) << 29) | (UL(1) << 28) | (UL(1) << 23) | \
+ (UL(1) << 22) | (UL(1) << 20) | (UL(1) << 11))
#define SCTLR_AARCH32_EL1_RES1 \
((U(1) << 23) | (U(1) << 22) | (U(1) << 11) | \
(U(1) << 4) | (U(1) << 3))