Merge "arm64: issue isb when trapping CNTVCT_EL0 access"
This commit is contained in:
commit
2f26ea48fb
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,7 @@
|
||||||
#include <linux/syscalls.h>
|
#include <linux/syscalls.h>
|
||||||
|
|
||||||
#include <asm/atomic.h>
|
#include <asm/atomic.h>
|
||||||
|
#include <asm/barrier.h>
|
||||||
#include <asm/bug.h>
|
#include <asm/bug.h>
|
||||||
#include <asm/debug-monitors.h>
|
#include <asm/debug-monitors.h>
|
||||||
#include <asm/esr.h>
|
#include <asm/esr.h>
|
||||||
|
@ -453,6 +454,7 @@ static void cntvct_read_handler(unsigned int esr, struct pt_regs *regs)
|
||||||
{
|
{
|
||||||
int rt = (esr & ESR_ELx_SYS64_ISS_RT_MASK) >> ESR_ELx_SYS64_ISS_RT_SHIFT;
|
int rt = (esr & ESR_ELx_SYS64_ISS_RT_MASK) >> ESR_ELx_SYS64_ISS_RT_SHIFT;
|
||||||
|
|
||||||
|
isb();
|
||||||
if (rt != 31)
|
if (rt != 31)
|
||||||
regs->regs[rt] = arch_counter_get_cntvct();
|
regs->regs[rt] = arch_counter_get_cntvct();
|
||||||
regs->pc += 4;
|
regs->pc += 4;
|
||||||
|
|
Loading…
Add table
Reference in a new issue