mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 18:14:24 +00:00
refactor(cpus): add Cortex-A17 errata framework information
Change-Id: I19d096edf47c1a9f47e79e9bb95984ce2102fad4 Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
This commit is contained in:
parent
bcb3ea92f8
commit
f3965b6c1a
1 changed files with 6 additions and 21 deletions
|
@ -63,6 +63,8 @@ func check_errata_852421
|
|||
b cpu_rev_var_ls
|
||||
endfunc check_errata_852421
|
||||
|
||||
add_erratum_entry cortex_a17, ERRATUM(852421), ERRATA_A17_852421
|
||||
|
||||
/* ----------------------------------------------------
|
||||
* Errata Workaround for Cortex A17 Errata #852423.
|
||||
* This applies only to revision <= r1p2 of Cortex A17.
|
||||
|
@ -91,6 +93,8 @@ func check_errata_852423
|
|||
b cpu_rev_var_ls
|
||||
endfunc check_errata_852423
|
||||
|
||||
add_erratum_entry cortex_a17, ERRATUM(852423), ERRATA_A17_852423
|
||||
|
||||
func check_errata_cve_2017_5715
|
||||
#if WORKAROUND_CVE_2017_5715
|
||||
mov r0, #ERRATA_APPLIES
|
||||
|
@ -100,28 +104,9 @@ func check_errata_cve_2017_5715
|
|||
bx lr
|
||||
endfunc check_errata_cve_2017_5715
|
||||
|
||||
#if REPORT_ERRATA
|
||||
/*
|
||||
* Errata printing function for Cortex A17. Must follow AAPCS.
|
||||
*/
|
||||
func cortex_a17_errata_report
|
||||
push {r12, lr}
|
||||
add_erratum_entry cortex_a17, CVE(2017, 5715), WORKAROUND_CVE_2017_5715
|
||||
|
||||
bl cpu_get_rev_var
|
||||
mov r4, r0
|
||||
|
||||
/*
|
||||
* Report all errata. The revision-variant information is passed to
|
||||
* checking functions of each errata.
|
||||
*/
|
||||
report_errata ERRATA_A17_852421, cortex_a17, 852421
|
||||
report_errata ERRATA_A17_852423, cortex_a17, 852423
|
||||
report_errata WORKAROUND_CVE_2017_5715, cortex_a17, cve_2017_5715
|
||||
|
||||
pop {r12, lr}
|
||||
bx lr
|
||||
endfunc cortex_a17_errata_report
|
||||
#endif
|
||||
errata_report_shim cortex_a17
|
||||
|
||||
func cortex_a17_reset_func
|
||||
mov r5, lr
|
||||
|
|
Loading…
Add table
Reference in a new issue