mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
arm64: Clear OSDLR_EL1 on CPU boot
commit 6fda41bf12 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
26e7d2ad97
commit
f273cd1655
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user