Skip to content

Commit

Permalink
armstub8: Initialize ACTLR here too (closes #114)
Browse files Browse the repository at this point in the history
  • Loading branch information
fincs authored and pelwell committed Oct 8, 2020
1 parent 14985bb commit fc0e73c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions armstubs/armstub8.S
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
#define SCR_VAL \
(SCR_RW | SCR_HCE | SCR_SMD | SCR_RES1_5 | SCR_RES1_4 | SCR_NS)

#define ACTLR_VAL \
(BIT(0) | BIT(1) | BIT(4) | BIT(5) | BIT(6))

#define CPUECTLR_EL1 S3_1_C15_C2_1
#define CPUECTLR_EL1_SMPEN BIT(6)

Expand Down Expand Up @@ -120,6 +123,10 @@ _start:
mov x0, #SCR_VAL
msr SCR_EL3, x0

/* Set up ACTLR */
mov x0, #ACTLR_VAL
msr ACTLR_EL3, x0

/* Set SMPEN */
mov x0, #CPUECTLR_EL1_SMPEN
msr CPUECTLR_EL1, x0
Expand Down

0 comments on commit fc0e73c

Please sign in to comment.