Update synopsys drivers to not rely on undefined overflow behaviour
authorJustin Chadwell <justin.chadwell@arm.com>
Wed, 3 Jul 2019 13:14:46 +0000 (14:14 +0100)
committerJustin Chadwell <justin.chadwell@arm.com>
Fri, 12 Jul 2019 08:12:19 +0000 (09:12 +0100)
commit9264f0876e7b085597c2da9fa850c8e6be1823f8
tree694a38efefe01be3bae06a14fd2ccd2d0b6f8d6f
parentdc5baeb3c2d519cc2d9f964dad5f3be1984fb2c2
Update synopsys drivers 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: I54560fe290e7dc52d364d0fe1c81a16f4c8d9a7b
Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
drivers/synopsys/emmc/dw_mmc.c