arm-trusted-firmware/drivers
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 Fix type of `unsigned long` constants 2017-09-21 12:03:53 +01:00
auth cert_tool: Support for legacy RSA PKCS#1 v1.5 2017-08-31 16:42:11 +01:00
cadence/uart Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
console Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
delay_timer delay_timer: correct sparse issues and warnings 2017-06-23 09:38:08 +02:00
emmc Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
gpio Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
io io_dummy: correct sparse warnings 2017-06-23 09:38:15 +02:00
partition Fix order of #includes 2017-07-12 14:45:31 +01:00
synopsys drivers: add designware ufs driver 2017-05-31 11:00:57 +08:00
ti/uart Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
ufs ufs: fix the and operator 2017-06-13 14:33:49 +08:00