Lines Matching defs:instr
390 static int call_undef_hook(struct pt_regs *regs, unsigned int instr)
394 int (*fn)(struct pt_regs *regs, unsigned int instr) = NULL;
398 if ((instr & hook->instr_mask) == hook->instr_val &&
403 return fn ? fn(regs, instr) : 1;
408 unsigned int instr;
417 instr = __mem_to_opcode_thumb16(((u16 *)pc)[0]);
418 if (is_wide_instruction(instr)) {
421 instr = __opcode_thumb32_compose(instr, inst2);
425 instr = __mem_to_opcode_arm(*(u32 *) pc);
427 if (get_user(instr, (u16 __user *)pc))
429 instr = __mem_to_opcode_thumb16(instr);
430 if (is_wide_instruction(instr)) {
435 instr = __opcode_thumb32_compose(instr, instr2);
438 if (get_user(instr, (u32 __user *)pc))
440 instr = __mem_to_opcode_arm(instr);
443 if (call_undef_hook(regs, instr) == 0)
726 static int get_tp_trap(struct pt_regs *regs, unsigned int instr)
728 int reg = (instr >> 12) & 15;
767 baddataabort(int code, unsigned long instr, struct pt_regs *regs)
774 printk(KERN_ERR "[%d] %s: bad data abort: code %d instr 0x%08lx\n",
775 task_pid_nr(current), current->comm, code, instr);
786 arm_notify_die("unknown data abort code", regs, &info, instr, 0);