mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-25 06:19:56 +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
|
b cpu_rev_var_ls
|
||||||
endfunc check_errata_852421
|
endfunc check_errata_852421
|
||||||
|
|
||||||
|
add_erratum_entry cortex_a17, ERRATUM(852421), ERRATA_A17_852421
|
||||||
|
|
||||||
/* ----------------------------------------------------
|
/* ----------------------------------------------------
|
||||||
* Errata Workaround for Cortex A17 Errata #852423.
|
* Errata Workaround for Cortex A17 Errata #852423.
|
||||||
* This applies only to revision <= r1p2 of Cortex A17.
|
* This applies only to revision <= r1p2 of Cortex A17.
|
||||||
|
@ -91,6 +93,8 @@ func check_errata_852423
|
||||||
b cpu_rev_var_ls
|
b cpu_rev_var_ls
|
||||||
endfunc check_errata_852423
|
endfunc check_errata_852423
|
||||||
|
|
||||||
|
add_erratum_entry cortex_a17, ERRATUM(852423), ERRATA_A17_852423
|
||||||
|
|
||||||
func check_errata_cve_2017_5715
|
func check_errata_cve_2017_5715
|
||||||
#if WORKAROUND_CVE_2017_5715
|
#if WORKAROUND_CVE_2017_5715
|
||||||
mov r0, #ERRATA_APPLIES
|
mov r0, #ERRATA_APPLIES
|
||||||
|
@ -100,28 +104,9 @@ func check_errata_cve_2017_5715
|
||||||
bx lr
|
bx lr
|
||||||
endfunc check_errata_cve_2017_5715
|
endfunc check_errata_cve_2017_5715
|
||||||
|
|
||||||
#if REPORT_ERRATA
|
add_erratum_entry cortex_a17, CVE(2017, 5715), WORKAROUND_CVE_2017_5715
|
||||||
/*
|
|
||||||
* Errata printing function for Cortex A17. Must follow AAPCS.
|
|
||||||
*/
|
|
||||||
func cortex_a17_errata_report
|
|
||||||
push {r12, lr}
|
|
||||||
|
|
||||||
bl cpu_get_rev_var
|
errata_report_shim cortex_a17
|
||||||
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
|
|
||||||
|
|
||||||
func cortex_a17_reset_func
|
func cortex_a17_reset_func
|
||||||
mov r5, lr
|
mov r5, lr
|
||||||
|
|
Loading…
Add table
Reference in a new issue