Lines Matching refs:regs
11 * Returns the target address and the expected type when regs->epc points
14 static bool decode_cfi_insn(struct pt_regs *regs, unsigned long *target,
17 unsigned long *regs_ptr = (unsigned long *)regs;
31 * ebreak ; <- regs->epc
38 if (get_kernel_nofault(insn, (void *)regs->epc - 4))
45 if (get_kernel_nofault(insn, (void *)regs->epc) ||
46 get_kernel_nofault(insn, (void *)regs->epc + GET_INSN_LENGTH(insn)))
65 enum bug_trap_type handle_cfi_failure(struct pt_regs *regs)
70 if (!is_cfi_trap(regs->epc))
73 if (!decode_cfi_insn(regs, &target, &type))
74 return report_cfi_failure_noaddr(regs, regs->epc);
76 return report_cfi_failure(regs, regs->epc, &target, type);