• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/arch/cris/arch-v32/kernel/

Lines Matching defs:child

32 static unsigned long get_pseudo_pc(struct task_struct *child);
81 void user_enable_single_step(struct task_struct *child)
89 if (!get_reg(child, PT_SPC)) {
91 tmp = get_reg(child, PT_ERP) & ~1;
92 put_reg(child, PT_SPC, tmp);
94 tmp = get_reg(child, PT_CCS) | SBIT_USER;
95 put_reg(child, PT_CCS, tmp);
98 void user_disable_single_step(struct task_struct *child)
100 put_reg(child, PT_SPC, 0);
102 if (!get_debugreg(child->pid, PT_BP_CTRL)) {
105 tmp = get_reg(child, PT_CCS) & ~SBIT_USER;
106 put_reg(child, PT_CCS, tmp);
116 ptrace_disable(struct task_struct *child)
121 user_disable_single_step(child);
122 put_reg(child, PT_SPC, 0);
124 /* Deconfigure any watchpoints associated with the child. */
125 deconfigure_bp(child->pid);
129 long arch_ptrace(struct task_struct *child, long request, long addr, long data)
151 copied = access_process_vm(child, addr, &tmp, sizeof(tmp), 0);
169 tmp = get_reg(child, addr >> 2);
177 ret = generic_ptrace_pokedata(child, addr, data);
193 data |= get_reg(child, PT_CCS) & ~CCS_MASK;
195 if (put_reg(child, addr, data))
200 /* Get all GP registers from the child. */
206 tmp = get_reg(child, i);
220 /* Set all GP registers in the child. */
233 tmp |= get_reg(child, PT_CCS) & ~CCS_MASK;
236 put_reg(child, i, tmp);
245 ret = ptrace_request(child, request, addr, data);
278 static int insn_size(struct task_struct *child, unsigned long pc)
285 copied = access_process_vm(child, pc, &opcode, sizeof(opcode), 0);
314 static unsigned long get_pseudo_pc(struct task_struct *child)
317 unsigned long pc = get_reg(child, PT_ERP);
320 unsigned long spc = get_reg(child, PT_SPC);
328 pc += insn_size(child, pc & ~1) - 1;