arm-trusted-firmware/plat
Antonio Nino Diaz e47ac1fd63 Fix type of `unsigned long` constants
The type `unsigned long` is 32 bit wide in AArch32, but 64 bit wide in
AArch64. This is inconsistent and that's why we avoid using it as per
the Coding Guidelines. This patch changes all `UL` occurrences to `U`
or `ULL` depending on the context so that the size of the constant is
clear.

This problem affected the macro `BIT(nr)`. As long as this macro is used
to fill fields of registers, that's not a problem, since all registers
are 32 bit wide in AArch32 and 64 bit wide in AArch64. However, if the
macro is used to fill the fields of a 64-bit integer, it won't be able
to set the upper 32 bits in AArch32.

By changing the type of this macro to `unsigned long long` the behaviour
is always the same regardless of the architecture, as this type is
64-bit wide in both cases.

Some Tegra platform files have been modified by this patch.

Change-Id: I918264c03e7d691a931f0d1018df25a2796cc221
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
2017-09-21 12:03:53 +01:00
..
arm Merge pull request #1092 from jeenu-arm/errata-workarounds 2017-09-13 14:52:24 +01:00
common Implement log framework 2017-09-11 15:37:24 +01:00
compat Resolve signed-unsigned comparison issues 2017-06-27 09:57:21 +01:00
hisilicon Merge pull request #1089 from Leo-Yan/hikey_enable_debug_module 2017-09-15 11:29:03 +01:00
mediatek Fix order of remaining platform #includes 2017-07-14 10:50:41 +01:00
nvidia/tegra Fix type of `unsigned long` constants 2017-09-21 12:03:53 +01:00
qemu qemu: Add OP-TEE extra image parsing support 2017-08-24 16:00:20 +02:00
rockchip rockchip/rk3399: reinitilize secure sgrf when resume 2017-08-29 15:35:41 +08:00
socionext/uniphier uniphier: work around Boot ROM bug for USB boot mode of PXs3 SoC 2017-09-01 11:11:30 +09:00
xilinx/zynqmp zynqmp: Sync function declaration and definition 2017-09-18 09:13:17 -07:00