Browse Source

Merge changes from topic "bk/errata_refactor" into integration

* changes:
  chore(fvp): add the aarch32 cortex A57 to the build
  chore(cpus): remove redundant asserts
  refactor(cpus): shorten errata flag defines
pull/1995/head
Manish Pandey 2 years ago
committed by TrustedFirmware Code Review
parent
commit
a59cddf2b9
  1. 8
      lib/cpus/aarch64/cpu_helpers.S
  2. 1082
      lib/cpus/cpu-ops.mk
  3. 13
      make_helpers/build_macros.mk
  4. 3
      plat/arm/board/fvp/platform.mk

8
lib/cpus/aarch64/cpu_helpers.S

@ -31,10 +31,6 @@ func reset_handler
/* Get the matching cpu_ops pointer */
bl get_cpu_ops_ptr
#if ENABLE_ASSERTIONS
cmp x0, #0
ASM_ASSERT(ne)
#endif
/* Get the cpu_ops reset handler */
ldr x2, [x0, #CPU_RESET_FUNC]
@ -100,10 +96,6 @@ func init_cpu_ops
cbnz x0, 1f
mov x10, x30
bl get_cpu_ops_ptr
#if ENABLE_ASSERTIONS
cmp x0, #0
ASM_ASSERT(ne)
#endif
str x0, [x6, #CPU_DATA_CPU_OPS_PTR]!
mov x30, x10
1:

1082
lib/cpus/cpu-ops.mk

File diff suppressed because it is too large

13
make_helpers/build_macros.mk

@ -38,6 +38,18 @@ define uppercase
$(eval uppercase_result:=$(call uppercase_internal,$(uppercase_table),$(1)))$(uppercase_result)
endef
# Convenience function for setting a variable to 0 if not previously set
# $(eval $(call default_zero,FOO))
define default_zero
$(eval $(1) ?= 0)
endef
# Convenience function for setting a list of variables to 0 if not previously set
# $(eval $(call default_zeros,FOO BAR))
define default_zeros
$(foreach var,$1,$(eval $(call default_zero,$(var))))
endef
# Convenience function for adding build definitions
# $(eval $(call add_define,FOO)) will have:
# -DFOO if $(FOO) is empty; -DFOO=$(FOO) otherwise
@ -45,7 +57,6 @@ define add_define
DEFINES += -D$(1)$(if $(value $(1)),=$(value $(1)),)
endef
# Convenience function for addding multiple build definitions
# $(eval $(call add_defines,FOO BOO))
define add_defines

3
plat/arm/board/fvp/platform.mk

@ -154,7 +154,8 @@ else
endif
else
FVP_CPU_LIBS += lib/cpus/aarch32/cortex_a32.S
FVP_CPU_LIBS += lib/cpus/aarch32/cortex_a32.S \
lib/cpus/aarch32/cortex_a57.S
endif
BL1_SOURCES += drivers/arm/smmu/smmu_v3.c \

Loading…
Cancel
Save