Lines Matching refs:esr

246 	unsigned int esr = tsk->thread.fault_code;  in arm64_show_signal()  local
256 if (esr) in arm64_show_signal()
257 pr_cont("%s, ESR 0x%08x, ", esr_get_class_string(esr), esr); in arm64_show_signal()
510 void do_ptrauth_fault(struct pt_regs *regs, unsigned int esr) in do_ptrauth_fault() argument
517 force_signal_inject(SIGILL, ILL_ILLOPN, regs->pc, esr); in do_ptrauth_fault()
536 static void user_cache_maint_handler(unsigned int esr, struct pt_regs *regs) in user_cache_maint_handler() argument
539 int rt = ESR_ELx_SYS64_ISS_RT(esr); in user_cache_maint_handler()
540 int crm = (esr & ESR_ELx_SYS64_ISS_CRM_MASK) >> ESR_ELx_SYS64_ISS_CRM_SHIFT; in user_cache_maint_handler()
576 static void ctr_read_handler(unsigned int esr, struct pt_regs *regs) in ctr_read_handler() argument
578 int rt = ESR_ELx_SYS64_ISS_RT(esr); in ctr_read_handler()
595 static void cntvct_read_handler(unsigned int esr, struct pt_regs *regs) in cntvct_read_handler() argument
597 int rt = ESR_ELx_SYS64_ISS_RT(esr); in cntvct_read_handler()
603 static void cntfrq_read_handler(unsigned int esr, struct pt_regs *regs) in cntfrq_read_handler() argument
605 int rt = ESR_ELx_SYS64_ISS_RT(esr); in cntfrq_read_handler()
611 static void mrs_handler(unsigned int esr, struct pt_regs *regs) in mrs_handler() argument
615 rt = ESR_ELx_SYS64_ISS_RT(esr); in mrs_handler()
616 sysreg = esr_sys64_to_sysreg(esr); in mrs_handler()
622 static void wfi_handler(unsigned int esr, struct pt_regs *regs) in wfi_handler() argument
630 void (*handler)(unsigned int esr, struct pt_regs *regs);
679 static bool cp15_cond_valid(unsigned int esr, struct pt_regs *regs) in cp15_cond_valid() argument
684 if (!(esr & ESR_ELx_CV)) { in cp15_cond_valid()
693 cond = (esr & ESR_ELx_COND_MASK) >> ESR_ELx_COND_SHIFT; in cp15_cond_valid()
699 static void compat_cntfrq_read_handler(unsigned int esr, struct pt_regs *regs) in compat_cntfrq_read_handler() argument
701 int reg = (esr & ESR_ELx_CP15_32_ISS_RT_MASK) >> ESR_ELx_CP15_32_ISS_RT_SHIFT; in compat_cntfrq_read_handler()
716 static void compat_cntvct_read_handler(unsigned int esr, struct pt_regs *regs) in compat_cntvct_read_handler() argument
718 int rt = (esr & ESR_ELx_CP15_64_ISS_RT_MASK) >> ESR_ELx_CP15_64_ISS_RT_SHIFT; in compat_cntvct_read_handler()
719 int rt2 = (esr & ESR_ELx_CP15_64_ISS_RT2_MASK) >> ESR_ELx_CP15_64_ISS_RT2_SHIFT; in compat_cntvct_read_handler()
741 void do_cp15instr(unsigned int esr, struct pt_regs *regs) in do_cp15instr() argument
745 if (!cp15_cond_valid(esr, regs)) { in do_cp15instr()
754 switch (ESR_ELx_EC(esr)) { in do_cp15instr()
767 if ((hook->esr_mask & esr) == hook->esr_val) { in do_cp15instr()
768 hook->handler(esr, regs); in do_cp15instr()
782 void do_sysinstr(unsigned int esr, struct pt_regs *regs) in do_sysinstr() argument
787 if ((hook->esr_mask & esr) == hook->esr_val) { in do_sysinstr()
788 hook->handler(esr, regs); in do_sysinstr()
846 const char *esr_get_class_string(u32 esr) in esr_get_class_string() argument
848 return esr_class_str[ESR_ELx_EC(esr)]; in esr_get_class_string()
855 void bad_el0_sync(struct pt_regs *regs, int reason, unsigned int esr) in bad_el0_sync() argument
860 current->thread.fault_code = esr; in bad_el0_sync()
871 void panic_bad_stack(struct pt_regs *regs, unsigned int esr, unsigned long far) in panic_bad_stack() argument
880 pr_emerg("ESR: 0x%08x -- %s\n", esr, esr_get_class_string(esr)); in panic_bad_stack()
901 void __noreturn arm64_serror_panic(struct pt_regs *regs, u32 esr) in arm64_serror_panic() argument
906 smp_processor_id(), esr, esr_get_class_string(esr)); in arm64_serror_panic()
916 bool arm64_is_fatal_ras_serror(struct pt_regs *regs, unsigned int esr) in arm64_is_fatal_ras_serror() argument
918 u32 aet = arm64_ras_serror_get_severity(esr); in arm64_is_fatal_ras_serror()
944 arm64_serror_panic(regs, esr); in arm64_is_fatal_ras_serror()
948 void do_serror(struct pt_regs *regs, unsigned int esr) in do_serror() argument
951 if (!arm64_is_ras_serror(esr) || arm64_is_fatal_ras_serror(regs, esr)) in do_serror()
952 arm64_serror_panic(regs, esr); in do_serror()
969 static int bug_handler(struct pt_regs *regs, unsigned int esr) in bug_handler() argument
994 static int reserved_fault_handler(struct pt_regs *regs, unsigned int esr) in reserved_fault_handler() argument
1014 #define KASAN_ESR_SIZE(esr) (1 << ((esr) & KASAN_ESR_SIZE_MASK)) argument
1016 static int kasan_handler(struct pt_regs *regs, unsigned int esr) in kasan_handler() argument
1018 bool recover = esr & KASAN_ESR_RECOVER; in kasan_handler()
1019 bool write = esr & KASAN_ESR_WRITE; in kasan_handler()
1020 size_t size = KASAN_ESR_SIZE(esr); in kasan_handler()
1059 int __init early_brk64(unsigned long addr, unsigned int esr, in early_brk64() argument
1063 unsigned int comment = esr & ESR_ELx_BRK64_ISS_COMMENT_MASK; in early_brk64()
1066 return kasan_handler(regs, esr) != DBG_HOOK_HANDLED; in early_brk64()
1068 return bug_handler(regs, esr) != DBG_HOOK_HANDLED; in early_brk64()