arm-trusted-firmware/include/drivers/arm
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
..
cryptocell Fix order of #includes 2017-07-12 14:45:31 +01:00
arm_gic.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
cci.h CCI: Adapt for specific product at run time 2017-08-01 14:33:47 +01:00
cci400.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
ccn.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
gic_common.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
gic_v2.h include: add U()/ULL() macros for constants 2017-06-14 17:00:30 -07:00
gic_v3.h Fix type of `unsigned long` constants 2017-09-21 12:03:53 +01:00
gicv2.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
gicv3.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
nic_400.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
pl011.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
pl061_gpio.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
smmu_v3.h Add SMMUv3 driver 2017-08-01 14:33:47 +01:00
sp804_delay_timer.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
sp805.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
tzc400.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
tzc_common.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
tzc_dmc500.h Use SPDX license identifiers 2017-05-03 09:39:28 +01:00