Apply errata workarounds only when major/minor revisions match.
Prior to this patch, the errata workarounds were applied for any version
of the CPU in the release build and in the debug build an assert
failure resulted when the revision did not match. This patch applies
errata workarounds in the Cortex-A57 reset handler only if the 'variant'
and 'revision' fields read from the MIDR_EL1 match. In the debug build,
a warning message is printed for each errata workaround which is not
applied.

The patch modifies the register usage in 'reset_handler` so
as to adhere to ARM procedure calling standards.

Fixes ARM-software/tf-issues#242

Change-Id: I51b1f876474599db885afa03346e38a476f84c29
1 parent 8e85791 commit 7395a725ae74de70820d7b126ba1af727f39e263
@Soby Mathew Soby Mathew authored on 22 Sep 2014
Showing 4 changed files
View
docs/cpu-errata-workarounds.md
View
include/lib/aarch64/arch.h
View
lib/cpus/aarch64/cortex_a57.S
View
lib/cpus/aarch64/cpu_helpers.S