Merge remote-tracking branch 'arm64/for-next/core'
[deliverable/linux.git] / arch / arm64 / mm / proc.S
index 1b11dcd7e8512e46ab82e6e3d1dee1fcd7c3f795..352c73b6a59ea3817c9f2c79a867e704b7c1009e 100644 (file)
@@ -101,7 +101,16 @@ ENTRY(cpu_do_resume)
 
        msr     tcr_el1, x8
        msr     vbar_el1, x9
+
+       /*
+        * __cpu_setup() cleared MDSCR_EL1.MDE and friends, before unmasking
+        * debug exceptions. By restoring MDSCR_EL1 here, we may take a debug
+        * exception. Mask them until local_dbg_restore() in cpu_suspend()
+        * resets them.
+        */
+       disable_dbg
        msr     mdscr_el1, x10
+
        msr     sctlr_el1, x12
        /*
         * Restore oslsr_el1 by writing oslar_el1
This page took 0.050005 seconds and 5 git commands to generate.