CPU: Make shifted constants unsigned
authorEleanor Bonnici <Eleanor.bonnici@arm.com>
Wed, 9 Aug 2017 09:36:08 +0000 (10:36 +0100)
committerJeenu Viswambharan <jeenu.viswambharan@arm.com>
Tue, 29 Aug 2017 12:52:48 +0000 (13:52 +0100)
commite4e6c4be6f415f4389aa9fee6f226ad0bf0e1637
tree3634b0ffa88ef3ba10a9f390351450012b713e09
parentafb33432dfacd6e50588a469e3c84b9c8a8e5fbf
CPU: Make shifted constants unsigned

In order to avoid Undefined behavior, left operand in left-shift
expressions needs to be unsigned, and of sufficient size. The safest and
most consistent approach is to use unsigned long long type.

Change-Id: I9612f16a6e6ea4c7df62a02497d862abf19b8e1b
Signed-off-by: Eleanor Bonnici <Eleanor.bonnici@arm.com>
include/lib/cpus/aarch32/cortex_a57.h
include/lib/cpus/aarch32/cortex_a72.h
include/lib/cpus/aarch64/cortex_a57.h
include/lib/cpus/aarch64/cortex_a72.h