|
@@ -106,10 +106,12 @@ __do_hyp_init:
|
|
|
tlbi alle2
|
|
|
dsb sy
|
|
|
|
|
|
- mrs x4, sctlr_el2
|
|
|
- and x4, x4, #SCTLR_ELx_EE // preserve endianness of EL2
|
|
|
- ldr x5, =SCTLR_ELx_FLAGS
|
|
|
- orr x4, x4, x5
|
|
|
+ /*
|
|
|
+ * Preserve all the RES1 bits while setting the default flags,
|
|
|
+ * as well as the EE bit on BE.
|
|
|
+ */
|
|
|
+ ldr x4, =(SCTLR_EL2_RES1 | SCTLR_ELx_FLAGS)
|
|
|
+CPU_BE( orr x4, x4, #SCTLR_ELx_EE)
|
|
|
msr sctlr_el2, x4
|
|
|
isb
|
|
|
|