Update base code to not rely on undefined overflow behaviour
authorJustin Chadwell <justin.chadwell@arm.com>
Wed, 3 Jul 2019 13:15:22 +0000 (14:15 +0100)
committerJustin Chadwell <justin.chadwell@arm.com>
Fri, 12 Jul 2019 08:12:19 +0000 (09:12 +0100)
commit3e43121ed16996758342aafdc42806ea2a0fe181
treea8dcf10c220f1120542143c54abd4d8eb5e2da94
parentd3b6df7c3b0db0c5791dd92b66f195a601d69559
Update base code 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: Iddd6f38139a4c6e500468b4fc48d04e0939f574e
Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
include/drivers/ufs.h
lib/xlat_tables/aarch32/nonlpae_tables.c