|
@@ -279,72 +279,6 @@ func cpu_rev_var_range
|
|
|
ret
|
|
|
endfunc cpu_rev_var_range
|
|
|
|
|
|
-#if REPORT_ERRATA
|
|
|
-/*
|
|
|
- * void print_errata_status(void);
|
|
|
- *
|
|
|
- * Function to print errata status for CPUs of its class. Must be called only:
|
|
|
- *
|
|
|
- * - with MMU and data caches are enabled;
|
|
|
- * - after cpu_ops have been initialized in per-CPU data.
|
|
|
- */
|
|
|
- .globl print_errata_status
|
|
|
-func print_errata_status
|
|
|
-#ifdef IMAGE_BL1
|
|
|
- /*
|
|
|
- * BL1 doesn't have per-CPU data. So retrieve the CPU operations
|
|
|
- * directly.
|
|
|
- */
|
|
|
- stp xzr, x30, [sp, #-16]!
|
|
|
- bl get_cpu_ops_ptr
|
|
|
- ldp xzr, x30, [sp], #16
|
|
|
- ldr x1, [x0, #CPU_ERRATA_FUNC]
|
|
|
- cbnz x1, .Lprint
|
|
|
-#else
|
|
|
- /*
|
|
|
- * Retrieve pointer to cpu_ops from per-CPU data, and further, the
|
|
|
- * errata printing function. If it's non-NULL, jump to the function in
|
|
|
- * turn.
|
|
|
- */
|
|
|
- mrs x0, tpidr_el3
|
|
|
-#if ENABLE_ASSERTIONS
|
|
|
- cmp x0, #0
|
|
|
- ASM_ASSERT(ne)
|
|
|
-#endif
|
|
|
- ldr x1, [x0, #CPU_DATA_CPU_OPS_PTR]
|
|
|
-#if ENABLE_ASSERTIONS
|
|
|
- cmp x1, #0
|
|
|
- ASM_ASSERT(ne)
|
|
|
-#endif
|
|
|
- ldr x0, [x1, #CPU_ERRATA_FUNC]
|
|
|
- cbz x0, .Lnoprint
|
|
|
-
|
|
|
- /*
|
|
|
- * Printing errata status requires atomically testing the printed flag.
|
|
|
- */
|
|
|
- stp x19, x30, [sp, #-16]!
|
|
|
- mov x19, x0
|
|
|
-
|
|
|
- /*
|
|
|
- * Load pointers to errata lock and printed flag. Call
|
|
|
- * errata_needs_reporting to check whether this CPU needs to report
|
|
|
- * errata status pertaining to its class.
|
|
|
- */
|
|
|
- ldr x0, [x1, #CPU_ERRATA_LOCK]
|
|
|
- ldr x1, [x1, #CPU_ERRATA_PRINTED]
|
|
|
- bl errata_needs_reporting
|
|
|
- mov x1, x19
|
|
|
- ldp x19, x30, [sp], #16
|
|
|
- cbnz x0, .Lprint
|
|
|
-#endif
|
|
|
-.Lnoprint:
|
|
|
- ret
|
|
|
-.Lprint:
|
|
|
- /* Jump to errata reporting function for this CPU */
|
|
|
- br x1
|
|
|
-endfunc print_errata_status
|
|
|
-#endif
|
|
|
-
|
|
|
/*
|
|
|
* int check_wa_cve_2017_5715(void);
|
|
|
*
|