Lines Matching refs:instr
390 static int call_undef_hook(struct pt_regs *regs, unsigned int instr) in call_undef_hook() argument
394 int (*fn)(struct pt_regs *regs, unsigned int instr) = NULL; in call_undef_hook()
398 if ((instr & hook->instr_mask) == hook->instr_val && in call_undef_hook()
403 return fn ? fn(regs, instr) : 1; in call_undef_hook()
408 unsigned int instr; in do_undefinstr() local
417 instr = __mem_to_opcode_thumb16(((u16 *)pc)[0]); in do_undefinstr()
418 if (is_wide_instruction(instr)) { in do_undefinstr()
421 instr = __opcode_thumb32_compose(instr, inst2); in do_undefinstr()
425 instr = __mem_to_opcode_arm(*(u32 *) pc); in do_undefinstr()
427 if (get_user(instr, (u16 __user *)pc)) in do_undefinstr()
429 instr = __mem_to_opcode_thumb16(instr); in do_undefinstr()
430 if (is_wide_instruction(instr)) { in do_undefinstr()
435 instr = __opcode_thumb32_compose(instr, instr2); in do_undefinstr()
438 if (get_user(instr, (u32 __user *)pc)) in do_undefinstr()
440 instr = __mem_to_opcode_arm(instr); in do_undefinstr()
443 if (call_undef_hook(regs, instr) == 0) in do_undefinstr()
724 static int get_tp_trap(struct pt_regs *regs, unsigned int instr) in get_tp_trap() argument
726 int reg = (instr >> 12) & 15; in get_tp_trap()
765 baddataabort(int code, unsigned long instr, struct pt_regs *regs) in baddataabort() argument
773 task_pid_nr(current), current->comm, code, instr); in baddataabort()
784 arm_notify_die("unknown data abort code", regs, &info, instr, 0); in baddataabort()