summaryrefslogtreecommitdiff
path: root/plat/renesas
diff options
context:
space:
mode:
authorJustin Chadwell <justin.chadwell@arm.com>2019-07-03 14:11:06 +0100
committerJustin Chadwell <justin.chadwell@arm.com>2019-07-11 12:10:58 +0100
commit673406b50841ca45b3f041283a0d5f750611470e (patch)
tree2eafbdba170f898f48ab80f47604d76106538f1e /plat/renesas
parent1578169edd4aec236e564570c73a931ad632e420 (diff)
Update renesas platform to not rely on undefined overflow behaviour
This consists of ensuring that the left operand of each shift is unsigned when the operation might overflow into the sign bit. Change-Id: I51278beacbe6da79853c3f0f0f94cd806fc9652c Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
Diffstat (limited to 'plat/renesas')
-rw-r--r--plat/renesas/rcar/rcar_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plat/renesas/rcar/rcar_common.c b/plat/renesas/rcar/rcar_common.c
index d24d71af..4ea753f2 100644
--- a/plat/renesas/rcar/rcar_common.c
+++ b/plat/renesas/rcar/rcar_common.c
@@ -18,10 +18,10 @@
#define MSTP318 (1 << 18)
#define MSTP319 (1 << 19)
#define PMSR 0x5c
-#define PMSR_L1FAEG (1 << 31)
+#define PMSR_L1FAEG (1U << 31)
#define PMSR_PMEL1RX (1 << 23)
#define PMCTLR 0x60
-#define PMSR_L1IATN (1 << 31)
+#define PMSR_L1IATN (1U << 31)
static int rcar_pcie_fixup(unsigned int controller)
{