diff options
author | Jean-Philippe Brucker <jean-philippe.brucker@arm.com> | 2019-04-08 18:17:18 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2019-04-09 12:38:31 +0100 |
commit | 6fda41bf12615ee7c3ddac88155099b1a8cf8d00 (patch) | |
tree | 691c94a935b7bf3659e6ff4158ecd8d4a43731d6 | |
parent | 475ba3fc194b6429eebcca0e1cf9917de6fa173e (diff) | |
download | linux-6fda41bf12615ee7c3ddac88155099b1a8cf8d00.tar.gz linux-6fda41bf12615ee7c3ddac88155099b1a8cf8d00.tar.bz2 linux-6fda41bf12615ee7c3ddac88155099b1a8cf8d00.zip |
arm64: Clear OSDLR_EL1 on CPU boot
Some firmwares may reboot CPUs with OS Double Lock set. Make sure that
it is unlocked, in order to use debug exceptions.
Cc: <stable@vger.kernel.org>
Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r-- | arch/arm64/kernel/debug-monitors.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kernel/debug-monitors.c b/arch/arm64/kernel/debug-monitors.c index 800486cc4823..555b6bd2f3d6 100644 --- a/arch/arm64/kernel/debug-monitors.c +++ b/arch/arm64/kernel/debug-monitors.c @@ -135,6 +135,7 @@ NOKPROBE_SYMBOL(disable_debug_monitors); */ static int clear_os_lock(unsigned int cpu) { + write_sysreg(0, osdlr_el1); write_sysreg(0, oslar_el1); isb(); return 0; |