Update layerscape platform to not rely on undefined overflow behaviour
authorJustin Chadwell <justin.chadwell@arm.com>
Wed, 3 Jul 2019 13:13:34 +0000 (14:13 +0100)
committerJustin Chadwell <justin.chadwell@arm.com>
Thu, 11 Jul 2019 11:10:58 +0000 (12:10 +0100)
commit9e4afb0272615a1c5f11d8371fd82c41a19499d5
tree31032a1867c39ebfcee7969a4d2b29cac6f42465
parent36cfbf3ca28be833116a1ac7c7c1b98da50db95a
Update layerscape 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: Ib63ef6e2e4616dd56828bfd3800d5fe2df109934
Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
plat/layerscape/board/ls1043/ls1043_psci.c
plat/layerscape/board/ls1043/ls_gic.c
plat/layerscape/common/include/soc.h