diff options
author | Boyan Karatotev <boyan.karatotev@arm.com> | 2023-01-25 18:50:10 +0000 |
---|---|---|
committer | Boyan Karatotev <boyan.karatotev@arm.com> | 2023-05-30 09:31:15 +0100 |
commit | dd9fae1ce0e7b985c9fe8f8f8ae358b8c166c6a9 (patch) | |
tree | ca603a08c8d23c01257775e2a12f6f7db9d482d3 /bl2 | |
parent | 6bb96fa6d6e101ffeef16464f8a44104a112074f (diff) |
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
Diffstat (limited to 'bl2')
-rw-r--r-- | bl2/bl2.mk | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bl2/bl2.mk b/bl2/bl2.mk index 41bcd127b..19b955f17 100644 --- a/bl2/bl2.mk +++ b/bl2/bl2.mk @@ -41,8 +41,7 @@ else BL2_SOURCES += bl2/${ARCH}/bl2_el3_entrypoint.S \ bl2/${ARCH}/bl2_el3_exceptions.S \ bl2/${ARCH}/bl2_run_next_image.S \ - lib/cpus/${ARCH}/cpu_helpers.S \ - lib/cpus/errata_report.c + lib/cpus/${ARCH}/cpu_helpers.S ifeq (${DISABLE_MTPMU},1) BL2_SOURCES += lib/extensions/mtpmu/${ARCH}/mtpmu.S |