Lines Matching refs:regno

75 static inline long get_reg(struct task_struct *task, int regno)  in get_reg()  argument
79 if (regno == PT_USP) in get_reg()
81 else if (regno < ARRAY_SIZE(regoff)) in get_reg()
82 addr = (unsigned long *)(task->thread.esp0 + regoff[regno]); in get_reg()
86 if (regno == PT_SR || regno == PT_PC) { in get_reg()
90 if (regno == PT_SR) in get_reg()
99 static inline int put_reg(struct task_struct *task, int regno, in put_reg() argument
104 if (regno == PT_USP) in put_reg()
106 else if (regno < ARRAY_SIZE(regoff)) in put_reg()
107 addr = (unsigned long *)(task->thread.esp0 + regoff[regno]); in put_reg()
111 if (regno == PT_SR || regno == PT_PC) { in put_reg()
115 if (regno == PT_SR) { in put_reg()
167 int regno = addr >> 2; /* temporary hack. */ in arch_ptrace() local
176 if (regno >= 0 && regno < 19) { in arch_ptrace()
177 tmp = get_reg(child, regno); in arch_ptrace()
178 } else if (regno >= 21 && regno < 49) { in arch_ptrace()
179 tmp = child->thread.fp[regno - 21]; in arch_ptrace()
183 if (FPU_IS_EMU && (regno < 45) && !(regno % 3)) in arch_ptrace()
187 } else if (regno == 49) { in arch_ptrace()
189 } else if (regno == 50) { in arch_ptrace()
191 } else if (regno == 51) { in arch_ptrace()
204 if (regno == PT_SR) { in arch_ptrace()
208 if (regno >= 0 && regno < 19) { in arch_ptrace()
209 if (put_reg(child, regno, data)) in arch_ptrace()
211 } else if (regno >= 21 && regno < 48) { in arch_ptrace()
215 if (FPU_IS_EMU && (regno < 45) && !(regno % 3)) { in arch_ptrace()
220 child->thread.fp[regno - 21] = data; in arch_ptrace()