Update hisilicon 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: I67984b6c48c08af61e95a4dbd18047e2c3151f9a
Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
1 parent 9264f08 commit d3b6df7c3b0db0c5791dd92b66f195a601d69559
@Justin Chadwell Justin Chadwell authored on 11 Jul 2019
Showing 7 changed files
View
plat/hisilicon/hikey/hikey_ddr.c
View
plat/hisilicon/hikey/include/hi6220_regs_ao.h
View
plat/hisilicon/hikey/include/hi6220_regs_peri.h
View
plat/hisilicon/hikey960/drivers/pwrc/hisi_pwrc.c
View
plat/hisilicon/hikey960/include/hi3660.h
View
plat/hisilicon/hikey960/include/hi3660_crg.h
View
plat/hisilicon/hikey960/include/hi3660_hkadc.h