Update mediatek platform to not rely on undefined overflow behaviour
authorJustin Chadwell <justin.chadwell@arm.com>
Wed, 3 Jul 2019 13:13:55 +0000 (14:13 +0100)
committerJustin Chadwell <justin.chadwell@arm.com>
Fri, 12 Jul 2019 08:12:12 +0000 (09:12 +0100)
commit621d5f2a5b28bd897fbad21645b86d72d76b4863
tree7fbcfca7b530c8b4ef9105e85609b7b24538295a
parent9e4afb0272615a1c5f11d8371fd82c41a19499d5
Update mediatek 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: If5a88e1b880bcb2be2278398cf5109a6d877e632
Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
plat/mediatek/mt8183/drivers/mcsi/mcsi.h
plat/mediatek/mt8183/include/mcucfg.h
plat/mediatek/mt8183/include/platform_def.h