arm-trusted-firmware/plat/nvidia/tegra/common
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
..
aarch64 Tegra: Rename CORTEX_A57_ACTLR_EL1 to *CPUACTLR* 2017-08-29 13:52:48 +01:00
drivers Fix order of remaining platform #includes 2017-07-14 10:50:41 +01:00
tegra_bl31_setup.c Fix order of remaining platform #includes 2017-07-14 10:50:41 +01:00
tegra_common.mk Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
tegra_delay_timer.c Tegra: delay_timer: fix MISRA defects 2017-06-14 17:01:51 -07:00
tegra_fiq_glue.c Tegra: fiq_glue: fix MISRA defects 2017-06-14 17:01:27 -07:00
tegra_gic.c Fix type of `unsigned long` constants 2017-09-21 12:03:53 +01:00
tegra_platform.c Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
tegra_pm.c Tegra: implement the early suspend handler 2017-07-31 11:41:41 -07:00
tegra_sip_calls.c Fix order of remaining platform #includes 2017-07-14 10:50:41 +01:00
tegra_topology.c Use SPDX license identifiers 2017-05-03 09:39:28 +01:00