|
@@ -438,7 +438,7 @@ asmlinkage void __exception do_undefinstr(struct pt_regs *regs)
|
|
|
static void user_cache_maint_handler(unsigned int esr, struct pt_regs *regs)
|
|
|
{
|
|
|
unsigned long address;
|
|
|
- int rt = (esr & ESR_ELx_SYS64_ISS_RT_MASK) >> ESR_ELx_SYS64_ISS_RT_SHIFT;
|
|
|
+ int rt = ESR_ELx_SYS64_ISS_RT(esr);
|
|
|
int crm = (esr & ESR_ELx_SYS64_ISS_CRM_MASK) >> ESR_ELx_SYS64_ISS_CRM_SHIFT;
|
|
|
int ret = 0;
|
|
|
|
|
@@ -473,7 +473,7 @@ static void user_cache_maint_handler(unsigned int esr, struct pt_regs *regs)
|
|
|
|
|
|
static void ctr_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_ELx_SYS64_ISS_RT(esr);
|
|
|
unsigned long val = arm64_ftr_reg_user_value(&arm64_ftr_reg_ctrel0);
|
|
|
|
|
|
pt_regs_write_reg(regs, rt, val);
|
|
@@ -483,7 +483,7 @@ static void ctr_read_handler(unsigned int esr, struct pt_regs *regs)
|
|
|
|
|
|
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_ELx_SYS64_ISS_RT(esr);
|
|
|
|
|
|
pt_regs_write_reg(regs, rt, arch_counter_get_cntvct());
|
|
|
arm64_skip_faulting_instruction(regs, AARCH64_INSN_SIZE);
|
|
@@ -491,7 +491,7 @@ static void cntvct_read_handler(unsigned int esr, struct pt_regs *regs)
|
|
|
|
|
|
static void cntfrq_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_ELx_SYS64_ISS_RT(esr);
|
|
|
|
|
|
pt_regs_write_reg(regs, rt, arch_timer_get_rate());
|
|
|
arm64_skip_faulting_instruction(regs, AARCH64_INSN_SIZE);
|