arm-trusted-firmware/include
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
..
bl1 FWU: Introduce FWU_SMC_IMAGE_RESET 2017-06-01 14:52:12 +01:00
bl31 include: add U()/ULL() macros for constants 2017-06-14 17:00:30 -07:00
bl32 bl32: add secure interrupt handling in AArch32 sp_min 2017-08-09 15:48:53 +02:00
common Implement log framework 2017-09-11 15:37:24 +01:00
drivers Fix type of `unsigned long` constants 2017-09-21 12:03:53 +01:00
lib Fix type of `unsigned long` constants 2017-09-21 12:03:53 +01:00
plat Merge pull request #1093 from soby-mathew/eb/log_fw 2017-09-18 12:17:33 +01:00
services Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
tools_share Support Trusted OS firmware extra images in TF tools 2017-08-09 18:06:05 +08:00