Lines Matching defs:addr
27 int is_syscall(unsigned long addr)
32 n = copy_from_user(&instr, (void __user *) addr, sizeof(instr));
39 n = access_process_vm(current, addr, &instr, sizeof(instr),
43 "instruction from 0x%lx\n", addr);
124 int poke_user(struct task_struct *child, long addr, long data)
126 if ((addr & 3) || addr < 0)
129 if (addr < MAX_REG_OFFSET)
130 return putreg(child, addr, data);
131 else if ((addr >= offsetof(struct user, u_debugreg[0])) &&
132 (addr <= offsetof(struct user, u_debugreg[7]))) {
133 addr -= offsetof(struct user, u_debugreg[0]);
134 addr = addr >> 2;
135 if ((addr == 4) || (addr == 5))
137 child->thread.arch.debugregs[addr] = data;
175 /* read the word at location addr in the USER area. */
176 int peek_user(struct task_struct *child, long addr, long data)
180 if ((addr & 3) || addr < 0)
184 if (addr < MAX_REG_OFFSET) {
185 tmp = getreg(child, addr);
187 else if ((addr >= offsetof(struct user, u_debugreg[0])) &&
188 (addr <= offsetof(struct user, u_debugreg[7]))) {
189 addr -= offsetof(struct user, u_debugreg[0]);
190 addr = addr >> 2;
191 tmp = child->thread.arch.debugregs[addr];
256 unsigned long addr, unsigned long data)