Update imx platform to not rely on undefined overflow behaviour
authorJustin Chadwell <justin.chadwell@arm.com>
Wed, 3 Jul 2019 13:14:22 +0000 (14:14 +0100)
committerJustin Chadwell <justin.chadwell@arm.com>
Fri, 12 Jul 2019 08:12:19 +0000 (09:12 +0100)
commitdc5baeb3c2d519cc2d9f964dad5f3be1984fb2c2
tree8dde806924058443eee2a6fd87c7e07f2ff87f96
parent621d5f2a5b28bd897fbad21645b86d72d76b4863
Update imx 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: Ia0a10b4a30e63c0cbf1d0f8dfe5768e0a93ae1c7
Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
plat/imx/common/sci/imx8_mu.h