mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-09 02:51:21 +00:00
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
This commit is contained in:
commit
a59cddf2b9
4 changed files with 732 additions and 1430 deletions
|
@ -31,10 +31,6 @@ func reset_handler
|
||||||
|
|
||||||
/* Get the matching cpu_ops pointer */
|
/* Get the matching cpu_ops pointer */
|
||||||
bl get_cpu_ops_ptr
|
bl get_cpu_ops_ptr
|
||||||
#if ENABLE_ASSERTIONS
|
|
||||||
cmp x0, #0
|
|
||||||
ASM_ASSERT(ne)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Get the cpu_ops reset handler */
|
/* Get the cpu_ops reset handler */
|
||||||
ldr x2, [x0, #CPU_RESET_FUNC]
|
ldr x2, [x0, #CPU_RESET_FUNC]
|
||||||
|
@ -100,10 +96,6 @@ func init_cpu_ops
|
||||||
cbnz x0, 1f
|
cbnz x0, 1f
|
||||||
mov x10, x30
|
mov x10, x30
|
||||||
bl get_cpu_ops_ptr
|
bl get_cpu_ops_ptr
|
||||||
#if ENABLE_ASSERTIONS
|
|
||||||
cmp x0, #0
|
|
||||||
ASM_ASSERT(ne)
|
|
||||||
#endif
|
|
||||||
str x0, [x6, #CPU_DATA_CPU_OPS_PTR]!
|
str x0, [x6, #CPU_DATA_CPU_OPS_PTR]!
|
||||||
mov x30, x10
|
mov x30, x10
|
||||||
1:
|
1:
|
||||||
|
|
2138
lib/cpus/cpu-ops.mk
2138
lib/cpus/cpu-ops.mk
File diff suppressed because it is too large
Load diff
|
@ -38,6 +38,18 @@ define uppercase
|
||||||
$(eval uppercase_result:=$(call uppercase_internal,$(uppercase_table),$(1)))$(uppercase_result)
|
$(eval uppercase_result:=$(call uppercase_internal,$(uppercase_table),$(1)))$(uppercase_result)
|
||||||
endef
|
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
|
# Convenience function for adding build definitions
|
||||||
# $(eval $(call add_define,FOO)) will have:
|
# $(eval $(call add_define,FOO)) will have:
|
||||||
# -DFOO if $(FOO) is empty; -DFOO=$(FOO) otherwise
|
# -DFOO if $(FOO) is empty; -DFOO=$(FOO) otherwise
|
||||||
|
@ -45,7 +57,6 @@ define add_define
|
||||||
DEFINES += -D$(1)$(if $(value $(1)),=$(value $(1)),)
|
DEFINES += -D$(1)$(if $(value $(1)),=$(value $(1)),)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
# Convenience function for addding multiple build definitions
|
# Convenience function for addding multiple build definitions
|
||||||
# $(eval $(call add_defines,FOO BOO))
|
# $(eval $(call add_defines,FOO BOO))
|
||||||
define add_defines
|
define add_defines
|
||||||
|
|
|
@ -154,7 +154,8 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
else
|
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
|
endif
|
||||||
|
|
||||||
BL1_SOURCES += drivers/arm/smmu/smmu_v3.c \
|
BL1_SOURCES += drivers/arm/smmu/smmu_v3.c \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue