Lines Matching refs:addr
76 unsigned long *addr;
79 addr = &task->thread.usp;
81 addr = (unsigned long *)(task->thread.esp0 + regoff[regno]);
87 addr = (unsigned long *) ((unsigned long)addr + stkadj);
90 return *(unsigned short *)addr;
92 return *addr;
101 unsigned long *addr;
104 addr = &task->thread.usp;
106 addr = (unsigned long *)(task->thread.esp0 + regoff[regno]);
112 addr = (unsigned long *) ((unsigned long)addr + stkadj);
115 *(unsigned short *)addr = data;
119 *addr = data;
159 long arch_ptrace(struct task_struct *child, long request, long addr, long data)
165 /* read the word at location addr in the USER area. */
167 if (addr & 3)
169 addr >>= 2; /* temporary hack. */
171 if (addr >= 0 && addr < 19) {
172 tmp = get_reg(child, addr);
173 } else if (addr >= 21 && addr < 49) {
174 tmp = child->thread.fp[addr - 21];
178 if (FPU_IS_EMU && (addr < 45) && !(addr % 3))
186 case PTRACE_POKEUSR: /* write the word at location addr in the USER area */
187 if (addr & 3)
189 addr >>= 2; /* temporary hack. */
191 if (addr == PT_SR) {
195 if (addr >= 0 && addr < 19) {
196 if (put_reg(child, addr, data))
198 } else if (addr >= 21 && addr < 48) {
202 if (FPU_IS_EMU && (addr < 45) && !(addr % 3)) {
207 child->thread.fp[addr - 21] = data;
254 ret = ptrace_request(child, request, addr, data);