Merge changes I1f662f82,I59a3b297 into integration

* changes:
  fix(build): include platform mk earlier
  fix(arm): use EL3_PAS in MAP_BL2_TOTAL definition
This commit is contained in:
Govindraj Raja 2025-01-09 00:03:35 +01:00 committed by TrustedFirmware Code Review
commit 79e11f5654
6 changed files with 12 additions and 21 deletions

View file

@ -513,6 +513,12 @@ ifeq ($(SPMC_AT_EL3),1)
endif endif
endif endif
################################################################################
# Include the platform specific Makefile after the SPD Makefile (the platform
# makefile may use all previous definitions in this file)
################################################################################
include ${PLAT_MAKEFILE_FULL}
################################################################################ ################################################################################
# Process BRANCH_PROTECTION value and set # Process BRANCH_PROTECTION value and set
# Pointer Authentication and Branch Target Identification flags # Pointer Authentication and Branch Target Identification flags
@ -557,12 +563,6 @@ ifeq (${ENABLE_PAUTH}, 1)
BL_COMMON_SOURCES += lib/extensions/pauth/pauth_helpers.S BL_COMMON_SOURCES += lib/extensions/pauth/pauth_helpers.S
endif endif
################################################################################
# Include the platform specific Makefile after the SPD Makefile (the platform
# makefile may use all previous definitions in this file)
################################################################################
include ${PLAT_MAKEFILE_FULL}
################################################################################ ################################################################################
# Setup arch_features based on ARM_ARCH_MAJOR, ARM_ARCH_MINOR provided from # Setup arch_features based on ARM_ARCH_MAJOR, ARM_ARCH_MINOR provided from
# platform. # platform.

View file

@ -2454,7 +2454,7 @@ pointer authentication keys.
The value should be obtained from a reliable source of randomness. The value should be obtained from a reliable source of randomness.
This function is only needed if ARMv8.3 pointer authentication is used in the This function is only needed if ARMv8.3 pointer authentication is used in the
Trusted Firmware by building with ``BRANCH_PROTECTION`` option set to non-zero. Trusted Firmware by building with ``BRANCH_PROTECTION`` option set to 1, 2 or 3.
Function : plat_get_syscnt_freq2() [mandatory] Function : plat_get_syscnt_freq2() [mandatory]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -52,17 +52,10 @@ CASSERT(BL2_BASE >= ARM_FW_CONFIG_LIMIT, assert_bl2_base_overflows);
#pragma weak bl2_plat_arch_setup #pragma weak bl2_plat_arch_setup
#pragma weak bl2_plat_sec_mem_layout #pragma weak bl2_plat_sec_mem_layout
#if ENABLE_RME
#define MAP_BL2_TOTAL MAP_REGION_FLAT( \ #define MAP_BL2_TOTAL MAP_REGION_FLAT( \
bl2_tzram_layout.total_base, \ bl2_tzram_layout.total_base, \
bl2_tzram_layout.total_size, \ bl2_tzram_layout.total_size, \
MT_MEMORY | MT_RW | MT_ROOT) MT_MEMORY | MT_RW | EL3_PAS)
#else
#define MAP_BL2_TOTAL MAP_REGION_FLAT( \
bl2_tzram_layout.total_base, \
bl2_tzram_layout.total_size, \
MT_MEMORY | MT_RW | MT_SECURE)
#endif /* ENABLE_RME */
#pragma weak arm_bl2_plat_handle_post_image_load #pragma weak arm_bl2_plat_handle_post_image_load

View file

@ -363,7 +363,7 @@ BL31_SOURCES += lib/extensions/ras/std_err_record.c \
endif endif
# Pointer Authentication sources # Pointer Authentication sources
ifeq (${ENABLE_PAUTH}, 1) ifeq ($(BRANCH_PROTECTION),$(filter $(BRANCH_PROTECTION),1 2 3))
PLAT_BL_COMMON_SOURCES += plat/arm/common/aarch64/arm_pauth.c PLAT_BL_COMMON_SOURCES += plat/arm/common/aarch64/arm_pauth.c
endif endif

View file

@ -318,9 +318,8 @@ BL31_SOURCES += lib/extensions/ras/std_err_record.c \
endif endif
# Pointer Authentication sources # Pointer Authentication sources
ifeq (${ENABLE_PAUTH}, 1) ifeq ($(BRANCH_PROTECTION),$(filter $(BRANCH_PROTECTION),1 2 3))
PLAT_BL_COMMON_SOURCES += plat/arm/common/aarch64/arm_pauth.c \ PLAT_BL_COMMON_SOURCES += plat/arm/common/aarch64/arm_pauth.c
lib/extensions/pauth/pauth_helpers.S
endif endif
ifeq (${SPD},spmd) ifeq (${SPD},spmd)

View file

@ -149,9 +149,8 @@ $(error "This is an AArch64-only port; CTX_INCLUDE_AARCH32_REGS must be disabled
endif endif
# Pointer Authentication sources # Pointer Authentication sources
ifeq (${ENABLE_PAUTH}, 1) ifeq ($(BRANCH_PROTECTION),$(filter $(BRANCH_PROTECTION),1 2 3))
PLAT_BL_COMMON_SOURCES += plat/arm/common/aarch64/arm_pauth.c PLAT_BL_COMMON_SOURCES += plat/arm/common/aarch64/arm_pauth.c
CTX_INCLUDE_PAUTH_REGS := 1
endif endif
endif endif