arm64: Add CNTVCT_EL0 trap handler
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 1 Feb 2017 11:48:58 +0000 (11:48 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 7 Apr 2017 10:22:08 +0000 (11:22 +0100)
commit6126ce0588eb5a0752d5c8b5796a7fca324fd887
tree7fc0666a03713243eac961d8899109686b12a628
parent8f4137588261d7504f4aa022dc9d1a1fd1940e8e
arm64: Add CNTVCT_EL0 trap handler

Since people seem to make a point in breaking the userspace visible
counter, we have no choice but to trap the access. Add the required
handler.

Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/esr.h
arch/arm64/kernel/traps.c