arm64: Clear OSDLR_EL1 on CPU boot
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Mon, 8 Apr 2019 17:17:18 +0000 (18:17 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 9 Apr 2019 11:38:31 +0000 (12:38 +0100)
commit6fda41bf12615ee7c3ddac88155099b1a8cf8d00
tree691c94a935b7bf3659e6ff4158ecd8d4a43731d6
parent475ba3fc194b6429eebcca0e1cf9917de6fa173e
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>
arch/arm64/kernel/debug-monitors.c