• Soby Mathew's avatar
    Apply errata workarounds only when major/minor revisions match. · 7395a725
    Soby Mathew authored
    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
    7395a725
arch.h 13.6 KB