Lines Matching refs:esr
73 #define ESR_ELx_EC(esr) (((esr) & ESR_ELx_EC_MASK) >> ESR_ELx_EC_SHIFT)
78 #define ESR_ELx_ISS(esr) ((esr) & ESR_ELx_ISS_MASK)
81 #define ESR_ELx_ISS2(esr) (((esr) & ESR_ELx_ISS2_MASK) >> ESR_ELx_ISS2_SHIFT)
224 #define ESR_ELx_SYS64_ISS_RT(esr) \
225 (((esr) & ESR_ELx_SYS64_ISS_RT_MASK) >> ESR_ELx_SYS64_ISS_RT_SHIFT)
384 #define ESR_ELx_MOPS_ISS_DESTREG(esr) (((esr) & (UL(0x1f) << 10)) >> 10)
385 #define ESR_ELx_MOPS_ISS_SRCREG(esr) (((esr) & (UL(0x1f) << 5)) >> 5)
386 #define ESR_ELx_MOPS_ISS_SIZEREG(esr) (((esr) & (UL(0x1f) << 0)) >> 0)
391 static inline unsigned long esr_brk_comment(unsigned long esr)
393 return esr & ESR_ELx_BRK64_ISS_COMMENT_MASK;
396 static inline bool esr_is_data_abort(unsigned long esr)
398 const unsigned long ec = ESR_ELx_EC(esr);
403 static inline bool esr_is_cfi_brk(unsigned long esr)
405 return ESR_ELx_EC(esr) == ESR_ELx_EC_BRK64 &&
406 (esr_brk_comment(esr) & ~CFI_BRK_IMM_MASK) == CFI_BRK_IMM_BASE;
409 static inline bool esr_fsc_is_translation_fault(unsigned long esr)
411 esr = esr & ESR_ELx_FSC;
413 return (esr == ESR_ELx_FSC_FAULT_L(3)) ||
414 (esr == ESR_ELx_FSC_FAULT_L(2)) ||
415 (esr == ESR_ELx_FSC_FAULT_L(1)) ||
416 (esr == ESR_ELx_FSC_FAULT_L(0)) ||
417 (esr == ESR_ELx_FSC_FAULT_L(-1));
420 static inline bool esr_fsc_is_permission_fault(unsigned long esr)
422 esr = esr & ESR_ELx_FSC;
424 return (esr == ESR_ELx_FSC_PERM_L(3)) ||
425 (esr == ESR_ELx_FSC_PERM_L(2)) ||
426 (esr == ESR_ELx_FSC_PERM_L(1)) ||
427 (esr == ESR_ELx_FSC_PERM_L(0));
430 static inline bool esr_fsc_is_access_flag_fault(unsigned long esr)
432 esr = esr & ESR_ELx_FSC;
434 return (esr == ESR_ELx_FSC_ACCESS_L(3)) ||
435 (esr == ESR_ELx_FSC_ACCESS_L(2)) ||
436 (esr == ESR_ELx_FSC_ACCESS_L(1)) ||
437 (esr == ESR_ELx_FSC_ACCESS_L(0));
441 static inline bool esr_iss_is_eretax(unsigned long esr)
443 return esr & ESR_ELx_ERET_ISS_ERET;
447 static inline bool esr_iss_is_eretab(unsigned long esr)
449 return esr & ESR_ELx_ERET_ISS_ERETA;
452 const char *esr_get_class_string(unsigned long esr);