Enable SRE_EL2 on ARM64
Enable system register access for EL2. Alpine-V2 is the first device requiring this to be enabled. It is also in-sync with Linux initialization code, and compatible with Alpine-V2 uboot requirements. Obtained from: Semihalf Submitted by: Michal Stanek <mst@semihalf.com> Sponsored by: Annapurna Labs Approved by: cognet (mentor) Reviewed by: wma Differential revision: https://reviews.freebsd.org/D5394
This commit is contained in:
parent
30d9287468
commit
b2552c46b6
@ -265,6 +265,7 @@ drop_to_el1:
|
||||
|
||||
mrs x2, icc_sre_el2
|
||||
orr x2, x2, #ICC_SRE_EL2_EN /* Enable access from insecure EL1 */
|
||||
orr x2, x2, #ICC_SRE_EL2_SRE /* Enable system registers */
|
||||
msr icc_sre_el2, x2
|
||||
2:
|
||||
|
||||
|
@ -131,6 +131,7 @@
|
||||
#define ICC_SRE_EL1_SRE (1U << 0)
|
||||
|
||||
/* ICC_SRE_EL2 */
|
||||
#define ICC_SRE_EL2_SRE (1U << 0)
|
||||
#define ICC_SRE_EL2_EN (1U << 3)
|
||||
|
||||
/* ID_AA64DFR0_EL1 */
|
||||
|
Loading…
Reference in New Issue
Block a user