arm64: mdscr_el1: avoid exposing DCC to userspace
authorWill Deacon <will.deacon@arm.com>
Thu, 20 Aug 2015 10:47:13 +0000 (11:47 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 20 Aug 2015 15:17:58 +0000 (16:17 +0100)
commitd8d23fa0f27f3b2942a7bbc7378c7735324ed519
tree2b7dd9735a738778ceb99d5c357a293daf64f4df
parentbf0c4e04732479f650ff59d1ee82de761c0071f0
arm64: mdscr_el1: avoid exposing DCC to userspace

We don't want to expose the DCC to userspace, particularly as there is
a kernel console driver for it.

This patch resets mdscr_el1 to disable userspace access to the DCC
registers on the cold boot path.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/proc.S