Skip to content

Commit

Permalink
armstub8: Initialize CPTR_EL3 with zeros (#123)
Browse files Browse the repository at this point in the history
In both Cortex A53 and A72, every bit of CPTR_EL3 is RES0 except bit 10
and bit 31. We need bit 10 to be 0, also bit 31 is 0 previously, so
zero the entire register in initialization.
  • Loading branch information
rhythm16 committed Jul 5, 2021
1 parent fc0e73c commit 2e59fc6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions armstubs/armstub8.S
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ _start:
msr CNTVOFF_EL2, xzr

/* Enable FP/SIMD */
/* All set bits below are res1; bit 10 (TFP) is set to 0 */
mov x0, #0x33ff
msr CPTR_EL3, x0
/* Bit 10 (TFP) is set to 0 */
msr CPTR_EL3, xzr

/* Set up SCR */
mov x0, #SCR_VAL
Expand Down

0 comments on commit 2e59fc6

Please sign in to comment.