Lines Matching refs:esr

213 	unsigned int esr = tsk->thread.fault_code;  in arm64_show_signal()  local
223 if (esr) in arm64_show_signal()
224 pr_cont("%s, ESR 0x%08x, ", esr_get_class_string(esr), esr); in arm64_show_signal()
429 static void user_cache_maint_handler(unsigned int esr, struct pt_regs *regs) in user_cache_maint_handler() argument
432 int rt = ESR_ELx_SYS64_ISS_RT(esr); in user_cache_maint_handler()
433 int crm = (esr & ESR_ELx_SYS64_ISS_CRM_MASK) >> ESR_ELx_SYS64_ISS_CRM_SHIFT; in user_cache_maint_handler()
468 static void ctr_read_handler(unsigned int esr, struct pt_regs *regs) in ctr_read_handler() argument
470 int rt = ESR_ELx_SYS64_ISS_RT(esr); in ctr_read_handler()
478 static void cntvct_read_handler(unsigned int esr, struct pt_regs *regs) in cntvct_read_handler() argument
480 int rt = ESR_ELx_SYS64_ISS_RT(esr); in cntvct_read_handler()
486 static void cntfrq_read_handler(unsigned int esr, struct pt_regs *regs) in cntfrq_read_handler() argument
488 int rt = ESR_ELx_SYS64_ISS_RT(esr); in cntfrq_read_handler()
494 static void mrs_handler(unsigned int esr, struct pt_regs *regs) in mrs_handler() argument
498 rt = ESR_ELx_SYS64_ISS_RT(esr); in mrs_handler()
499 sysreg = esr_sys64_to_sysreg(esr); in mrs_handler()
505 static void wfi_handler(unsigned int esr, struct pt_regs *regs) in wfi_handler() argument
513 void (*handler)(unsigned int esr, struct pt_regs *regs);
583 static bool cp15_cond_valid(unsigned int esr, struct pt_regs *regs) in cp15_cond_valid() argument
588 if (!(esr & ESR_ELx_CV)) { in cp15_cond_valid()
597 cond = (esr & ESR_ELx_COND_MASK) >> ESR_ELx_COND_SHIFT; in cp15_cond_valid()
633 static void compat_cntfrq_read_handler(unsigned int esr, struct pt_regs *regs) in compat_cntfrq_read_handler() argument
635 int reg = (esr & ESR_ELx_CP15_32_ISS_RT_MASK) >> ESR_ELx_CP15_32_ISS_RT_SHIFT; in compat_cntfrq_read_handler()
650 static void compat_cntvct_read_handler(unsigned int esr, struct pt_regs *regs) in compat_cntvct_read_handler() argument
652 int rt = (esr & ESR_ELx_CP15_64_ISS_RT_MASK) >> ESR_ELx_CP15_64_ISS_RT_SHIFT; in compat_cntvct_read_handler()
653 int rt2 = (esr & ESR_ELx_CP15_64_ISS_RT2_MASK) >> ESR_ELx_CP15_64_ISS_RT2_SHIFT; in compat_cntvct_read_handler()
670 asmlinkage void __exception do_cp15instr(unsigned int esr, struct pt_regs *regs) in do_cp15instr() argument
674 if (!cp15_cond_valid(esr, regs)) { in do_cp15instr()
683 switch (ESR_ELx_EC(esr)) { in do_cp15instr()
696 if ((hook->esr_mask & esr) == hook->esr_val) { in do_cp15instr()
697 hook->handler(esr, regs); in do_cp15instr()
710 asmlinkage void __exception do_sysinstr(unsigned int esr, struct pt_regs *regs) in do_sysinstr() argument
715 if ((hook->esr_mask & esr) == hook->esr_val) { in do_sysinstr()
716 hook->handler(esr, regs); in do_sysinstr()
771 const char *esr_get_class_string(u32 esr) in esr_get_class_string() argument
773 return esr_class_str[ESR_ELx_EC(esr)]; in esr_get_class_string()
780 asmlinkage void bad_mode(struct pt_regs *regs, int reason, unsigned int esr) in bad_mode() argument
785 handler[reason], smp_processor_id(), esr, in bad_mode()
786 esr_get_class_string(esr)); in bad_mode()
796 asmlinkage void bad_el0_sync(struct pt_regs *regs, int reason, unsigned int esr) in bad_el0_sync() argument
801 current->thread.fault_code = esr; in bad_el0_sync()
817 unsigned int esr = read_sysreg(esr_el1); in handle_bad_stack() local
823 pr_emerg("ESR: 0x%08x -- %s\n", esr, esr_get_class_string(esr)); in handle_bad_stack()
844 void __noreturn arm64_serror_panic(struct pt_regs *regs, u32 esr) in arm64_serror_panic() argument
849 smp_processor_id(), esr, esr_get_class_string(esr)); in arm64_serror_panic()
859 bool arm64_is_fatal_ras_serror(struct pt_regs *regs, unsigned int esr) in arm64_is_fatal_ras_serror() argument
861 u32 aet = arm64_ras_serror_get_severity(esr); in arm64_is_fatal_ras_serror()
887 arm64_serror_panic(regs, esr); in arm64_is_fatal_ras_serror()
891 asmlinkage void do_serror(struct pt_regs *regs, unsigned int esr) in do_serror() argument
899 if (!arm64_is_ras_serror(esr) || arm64_is_fatal_ras_serror(regs, esr)) in do_serror()
900 arm64_serror_panic(regs, esr); in do_serror()
947 static int bug_handler(struct pt_regs *regs, unsigned int esr) in bug_handler() argument
977 #define KASAN_ESR_SIZE(esr) (1 << ((esr) & KASAN_ESR_SIZE_MASK)) argument
979 static int kasan_handler(struct pt_regs *regs, unsigned int esr) in kasan_handler() argument
981 bool recover = esr & KASAN_ESR_RECOVER; in kasan_handler()
982 bool write = esr & KASAN_ESR_WRITE; in kasan_handler()
983 size_t size = KASAN_ESR_SIZE(esr); in kasan_handler()
1022 int __init early_brk64(unsigned long addr, unsigned int esr, in early_brk64() argument
1026 unsigned int comment = esr & ESR_ELx_BRK64_ISS_COMMENT_MASK; in early_brk64()
1029 return kasan_handler(regs, esr) != DBG_HOOK_HANDLED; in early_brk64()
1031 return bug_handler(regs, esr) != DBG_HOOK_HANDLED; in early_brk64()