Switch AARCH32/AARCH64 to __aarch64__
authorJulius Werner <jwerner@chromium.org>
Tue, 9 Jul 2019 21:02:43 +0000 (14:02 -0700)
committerJulius Werner <jwerner@chromium.org>
Thu, 1 Aug 2019 20:45:03 +0000 (13:45 -0700)
commit402b3cf8766fe2cb4ae462f7ee7761d08a1ba56c
treebf3de0c17a38822188847b7bdaad7f70441637b0
parentd5dfdeb65ff5b7f24dded201d2945c7b74565ce8
Switch AARCH32/AARCH64 to __aarch64__

NOTE: AARCH32/AARCH64 macros are now deprecated in favor of __aarch64__.

All common C compilers pre-define the same macros to signal which
architecture the code is being compiled for: __arm__ for AArch32 (or
earlier versions) and __aarch64__ for AArch64. There's no need for TF-A
to define its own custom macros for this. In order to unify code with
the export headers (which use __aarch64__ to avoid another dependency),
let's deprecate the AARCH32 and AARCH64 macros and switch the code base
over to the pre-defined standard macro. (Since it is somewhat
unintuitive that __arm__ only means AArch32, let's standardize on only
using __aarch64__.)

Change-Id: Ic77de4b052297d77f38fc95f95f65a8ee70cf200
Signed-off-by: Julius Werner <jwerner@chromium.org>
65 files changed:
Makefile
bl1/bl1_fwu.c
bl1/bl1_main.c
bl2/bl2_main.c
bl2u/bl2u_main.c
common/backtrace/backtrace.c
common/bl_common.c
drivers/arm/ccn/ccn.c
drivers/arm/gic/v3/gicv3_main.c
drivers/arm/gic/v3/gicv3_private.h
include/common/ep_info.h
include/common/runtime_svc.h
include/lib/el3_runtime/context_mgmt.h
include/lib/el3_runtime/cpu_data.h
include/lib/el3_runtime/pubsub_events.h
include/lib/utils_def.h
include/lib/xlat_tables/xlat_mmu_helpers.h
include/lib/xlat_tables/xlat_tables_arch.h
include/lib/xlat_tables/xlat_tables_defs.h
include/plat/arm/common/arm_def.h
include/plat/arm/common/plat_arm.h
include/plat/common/common_def.h
lib/cpus/errata_report.c
lib/locks/bakery/bakery_lock_normal.c
lib/optee/optee_utils.c
lib/psci/psci_common.c
lib/xlat_tables_v2/xlat_tables_context.c
lib/xlat_tables_v2/xlat_tables_utils.c
make_helpers/build_macros.mk
plat/arm/board/fvp/fvp_common.c
plat/arm/board/fvp/include/platform_def.h
plat/arm/board/fvp_ve/include/platform_def.h
plat/arm/board/juno/include/platform_def.h
plat/arm/board/juno/juno_common.c
plat/arm/board/n1sdp/include/platform_def.h
plat/arm/board/rde1edge/include/platform_def.h
plat/arm/board/rdn1edge/include/platform_def.h
plat/arm/board/sgi575/include/platform_def.h
plat/arm/board/sgm775/include/platform_def.h
plat/arm/common/arm_bl1_setup.c
plat/arm/common/arm_bl2_el3_setup.c
plat/arm/common/arm_bl2_setup.c
plat/arm/common/arm_bl2u_setup.c
plat/arm/common/arm_common.c
plat/arm/common/arm_gicv3.c
plat/arm/common/arm_nor_psci_mem_protect.c
plat/arm/common/arm_pm.c
plat/arm/common/execution_state_switch.c
plat/common/plat_gicv3.c
plat/common/plat_psci_common.c
plat/hisilicon/hikey/hikey_bl2_setup.c
plat/hisilicon/hikey/include/hikey_layout.h
plat/hisilicon/hikey960/hikey960_bl2_setup.c
plat/hisilicon/hikey960/include/platform_def.h
plat/hisilicon/poplar/bl2_plat_setup.c
plat/hisilicon/poplar/include/platform_def.h
plat/layerscape/common/ls_bl1_setup.c
plat/layerscape/common/ls_bl2_setup.c
plat/layerscape/common/ls_common.c
plat/qemu/qemu_bl1_setup.c
plat/qemu/qemu_bl2_mem_params_desc.c
plat/qemu/qemu_bl2_setup.c
plat/qemu/qemu_common.c
plat/rockchip/common/include/plat_private.h
services/std_svc/sdei/sdei_private.h