diff options
Diffstat (limited to 'arch/arm64/mm/proc.S')
| -rw-r--r-- | arch/arm64/mm/proc.S | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm64/mm/proc.S b/arch/arm64/mm/proc.S index 5bb61de23201..9d37e967fa19 100644 --- a/arch/arm64/mm/proc.S +++ b/arch/arm64/mm/proc.S | |||
| @@ -100,7 +100,16 @@ ENTRY(cpu_do_resume) | |||
| 100 | 100 | ||
| 101 | msr tcr_el1, x8 | 101 | msr tcr_el1, x8 |
| 102 | msr vbar_el1, x9 | 102 | msr vbar_el1, x9 |
| 103 | |||
| 104 | /* | ||
| 105 | * __cpu_setup() cleared MDSCR_EL1.MDE and friends, before unmasking | ||
| 106 | * debug exceptions. By restoring MDSCR_EL1 here, we may take a debug | ||
| 107 | * exception. Mask them until local_dbg_restore() in cpu_suspend() | ||
| 108 | * resets them. | ||
| 109 | */ | ||
| 110 | disable_dbg | ||
| 103 | msr mdscr_el1, x10 | 111 | msr mdscr_el1, x10 |
| 112 | |||
| 104 | msr sctlr_el1, x12 | 113 | msr sctlr_el1, x12 |
| 105 | /* | 114 | /* |
| 106 | * Restore oslsr_el1 by writing oslar_el1 | 115 | * Restore oslsr_el1 by writing oslar_el1 |
