Update intel platform to not rely on undefined overflow behaviour
authorJustin Chadwell <justin.chadwell@arm.com>
Wed, 3 Jul 2019 13:12:25 +0000 (14:12 +0100)
committerJustin Chadwell <justin.chadwell@arm.com>
Thu, 11 Jul 2019 11:10:58 +0000 (12:10 +0100)
commit36cfbf3ca28be833116a1ac7c7c1b98da50db95a
tree46268908072afb16c4856555d9ff4db8836a1751
parent79ca7807cc00fb262b3c9e202f19dbbcb618f228
Update intel 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: I4c7a315cb18b3bbe623e7a7a998d2dac869638a7
Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
plat/intel/soc/common/drivers/qspi/cadence_qspi.h
plat/intel/soc/stratix10/include/s10_mailbox.h