arm-trusted-firmware/plat/arm/common
Masahiro Yamada 6af03f9c45 Use #ifdef for AARCH32 instead of #if
One nasty part of ATF is some of boolean macros are always defined
as 1 or 0, and the rest of them are only defined under certain
conditions.

For the former group, "#if FOO" or "#if !FOO" must be used because
"#ifdef FOO" is always true.  (Options passed by $(call add_define,)
are the cases.)

For the latter, "#ifdef FOO" or "#ifndef FOO" should be used because
checking the value of an undefined macro is strange.

For AARCH32/AARCH64, these macros are defined in the top-level
Makefile as follows:

ifeq (${ARCH},aarch32)
        $(eval $(call add_define,AARCH32))
else
        $(eval $(call add_define,AARCH64))
endif

This means only one of the two is defined.  So, AARCH32/AARCH64
belongs to the latter group where we should use #ifdef or #ifndef.
The conditionals are mostly coded correctly, but I see some mistakes.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2017-01-24 01:01:21 +09:00
..
aarch32 AArch32: Print ASM_ASSERT and panic messages 2016-12-19 11:57:12 +00:00
aarch64 ARM platform changes for new version of image loading 2016-09-21 16:12:48 +01:00
sp_min Move BL_COHERENT_RAM_BASE/END defines to common_def.h 2017-01-18 19:33:41 +09:00
tsp Move BL_COHERENT_RAM_BASE/END defines to common_def.h 2017-01-18 19:33:41 +09:00
arm_bl1_fwu.c Fix integer overflows in BL1 FWU code 2016-12-20 11:43:10 +00:00
arm_bl1_setup.c Move BL_COHERENT_RAM_BASE/END defines to common_def.h 2017-01-18 19:33:41 +09:00
arm_bl2_setup.c Move BL_COHERENT_RAM_BASE/END defines to common_def.h 2017-01-18 19:33:41 +09:00
arm_bl2u_setup.c Move BL_COHERENT_RAM_BASE/END defines to common_def.h 2017-01-18 19:33:41 +09:00
arm_bl31_setup.c Move BL_COHERENT_RAM_BASE/END defines to common_def.h 2017-01-18 19:33:41 +09:00
arm_cci.c Introduce utils.h header file 2016-07-08 14:37:11 +01:00
arm_ccn.c Add CCN support to FVP platform port 2016-05-25 10:25:16 +01:00
arm_common.c AArch32: Add essential ARM platform and FVP support 2016-08-10 18:01:38 +01:00
arm_common.mk Merge pull request #785 from dp-arm/dp/nvcounter 2016-12-20 11:36:54 +00:00
arm_gicv2.c Introduce ARM platform APIs for GICv3 Redistributor 2016-12-15 14:08:26 +00:00
arm_gicv3.c Use #ifdef for AARCH32 instead of #if 2017-01-24 01:01:21 +09:00
arm_gicv3_legacy.c Introduce ARM platform APIs for GICv3 Redistributor 2016-12-15 14:08:26 +00:00
arm_image_load.c ARM platform changes for new version of image loading 2016-09-21 16:12:48 +01:00
arm_io_storage.c Introduce utils.h header file 2016-07-08 14:37:11 +01:00
arm_pm.c Allow ARM Standard platforms to dynamically define PSCI capability 2016-12-07 12:45:55 +00:00
arm_sip_svc.c Introduce ARM SiP service 2016-10-12 15:36:45 +01:00
arm_topology.c Allow multi cluster topology definitions for ARM platforms 2016-02-19 09:18:52 +00:00
arm_tzc400.c Migrate ARM standard platforms to the refactored TZC driver 2016-03-31 21:23:23 +01:00
arm_tzc_dmc500.c Add support to program a DMC-500 TZC on ARM platforms 2016-03-31 21:23:24 +01:00