refactor(cpus): convert print_errata_status to C
The function is called in a fully initialised C environment and calls
into other C functions. The Aarch differences are minimal and are hidden
by the pre-existing headers. Converting it results into cleaner code
that is the same across both Aarch64 and Aarch32.
To avoid having to do very ugly pointer arithmetic, define a C struct
for the cpu_ops for both Aarch64 and Aarch32.
Signed-off-by:
Boyan Karatotev <boyan.karatotev@arm.com>
Change-Id: Idc07c4064e03143c88a4a0e2d10ceda70ba19a50
Showing
- bl2/bl2.mk 1 addition, 2 deletionsbl2/bl2.mk
- include/lib/cpus/cpu_ops.h 37 additions, 0 deletionsinclude/lib/cpus/cpu_ops.h
- include/lib/cpus/errata.h 1 addition, 12 deletionsinclude/lib/cpus/errata.h
- lib/cpus/aarch32/cpu_helpers.S 1 addition, 60 deletionslib/cpus/aarch32/cpu_helpers.S
- lib/cpus/aarch64/cpu_helpers.S 0 additions, 66 deletionslib/cpus/aarch64/cpu_helpers.S
- lib/cpus/errata_report.c 40 additions, 1 deletionlib/cpus/errata_report.c
- plat/arm/board/fvp_r/platform.mk 1 addition, 0 deletionsplat/arm/board/fvp_r/platform.mk
Please register or sign in to comment