]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/arm64/kernel/head.S
Merge remote-tracking branch 'arm64/for-next/core'
[karo-tx-linux.git] / arch / arm64 / kernel / head.S
index 514c1cc9fdc5bc5da0a3b5a1cf30ae8523bb3f24..23cfc08fc8ba88683600d7618acb9bdb400ae2b9 100644 (file)
@@ -484,6 +484,8 @@ CPU_LE(     bic     x0, x0, #(3 << 24)      )       // Clear the EE and E0E bits for EL1
        orr     x0, x0, #ICC_SRE_EL2_ENABLE     // Set ICC_SRE_EL2.Enable==1
        msr_s   ICC_SRE_EL2, x0
        isb                                     // Make sure SRE is now set
+       mrs_s   x0, ICC_SRE_EL2                 // Read SRE back,
+       tbz     x0, #0, 3f                      // and check that it sticks
        msr_s   ICH_HCR_EL2, xzr                // Reset ICC_HCR_EL2 to defaults
 
 3: