• Alexei Fedorov's avatar
    AArch32: Disable Secure Cycle Counter · c3e8b0be
    Alexei Fedorov authored
    
    
    This patch changes implementation for disabling Secure Cycle
    Counter. For ARMv8.5 the counter gets disabled by setting
    SDCR.SCCD bit on CPU cold/warm boot. For the earlier
    architectures PMCR register is saved/restored on secure
    world entry/exit from/to Non-secure state, and cycle counting
    gets disabled by setting PMCR.DP bit.
    In 'include\aarch32\arch.h' header file new
    ARMv8.5-PMU related definitions were added.
    
    Change-Id: Ia8845db2ebe8de940d66dff479225a5b879316f8
    Signed-off-by: default avatarAlexei Fedorov <Alexei.Fedorov@arm.com>
    c3e8b0be
entrypoint.S 8.5 KB