mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 02:24:18 +00:00
Merge "Explicitly disable the SPME bit in MDCR_EL3" into integration
This commit is contained in:
commit
80003d86a6
1 changed files with 8 additions and 1 deletions
|
@ -113,11 +113,18 @@
|
|||
* prohibited in Secure state. This bit is RES0 in versions of the
|
||||
* architecture earlier than ARMv8.5, setting it to 1 doesn't have any
|
||||
* effect on them.
|
||||
*
|
||||
* MDCR_EL3.SPME: Set to zero so that event counting by the programmable
|
||||
* counters PMEVCNTR<n>_EL0 is prohibited in Secure state. If ARMv8.2
|
||||
* Debug is not implemented this bit does not have any effect on the
|
||||
* counters unless there is support for the implementation defined
|
||||
* authentication interface ExternalSecureNoninvasiveDebugEnabled().
|
||||
* ---------------------------------------------------------------------
|
||||
*/
|
||||
mov_imm x0, ((MDCR_EL3_RESET_VAL | MDCR_SDD_BIT | \
|
||||
MDCR_SPD32(MDCR_SPD32_DISABLE) | MDCR_SCCD_BIT) & \
|
||||
~(MDCR_TDOSA_BIT | MDCR_TDA_BIT | MDCR_TPM_BIT))
|
||||
~(MDCR_SPME_BIT | MDCR_TDOSA_BIT | MDCR_TDA_BIT | \
|
||||
MDCR_TPM_BIT))
|
||||
|
||||
msr mdcr_el3, x0
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue