Lines Matching full:debug
13 task->thread.debug.dbcr0 &= ~DBCR0_BT; in user_enable_single_step()
14 task->thread.debug.dbcr0 |= DBCR0_IDM | DBCR0_IC; in user_enable_single_step()
25 task->thread.debug.dbcr0 &= ~DBCR0_IC; in user_enable_block_step()
26 task->thread.debug.dbcr0 = DBCR0_IDM | DBCR0_BT; in user_enable_block_step()
40 * And, after doing so, if all debug flags are off, turn in user_disable_single_step()
43 task->thread.debug.dbcr0 &= ~(DBCR0_IC | DBCR0_BT); in user_disable_single_step()
47 if (!DBCR_ACTIVE_EVENTS(task->thread.debug.dbcr0, in user_disable_single_step()
48 task->thread.debug.dbcr1)) { in user_disable_single_step()
50 * All debug events were off..... in user_disable_single_step()
52 task->thread.debug.dbcr0 &= ~DBCR0_IDM; in user_disable_single_step()
80 return put_user(child->thread.debug.dac1, datalp); in ptrace_get_debugreg()
110 task->thread.debug.dac1 = data & ~0x3UL; in ptrace_set_debugreg()
112 if (task->thread.debug.dac1 == 0) { in ptrace_set_debugreg()
114 if (!DBCR_ACTIVE_EVENTS(task->thread.debug.dbcr0, in ptrace_set_debugreg()
115 task->thread.debug.dbcr1)) { in ptrace_set_debugreg()
117 task->thread.debug.dbcr0 &= ~DBCR0_IDM; in ptrace_set_debugreg()
128 task->thread.debug.dbcr0 |= DBCR0_IDM; in ptrace_set_debugreg()
144 int slot1_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC1) != 0); in set_instruction_bp()
145 int slot2_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC2) != 0); in set_instruction_bp()
146 int slot3_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC3) != 0); in set_instruction_bp()
147 int slot4_in_use = ((child->thread.debug.dbcr0 & DBCR0_IAC4) != 0); in set_instruction_bp()
165 child->thread.debug.iac1 = bp_info->addr; in set_instruction_bp()
166 child->thread.debug.iac2 = bp_info->addr2; in set_instruction_bp()
167 child->thread.debug.dbcr0 |= DBCR0_IAC1; in set_instruction_bp()
176 child->thread.debug.iac3 = bp_info->addr; in set_instruction_bp()
177 child->thread.debug.iac4 = bp_info->addr2; in set_instruction_bp()
178 child->thread.debug.dbcr0 |= DBCR0_IAC3; in set_instruction_bp()
199 child->thread.debug.iac1 = bp_info->addr; in set_instruction_bp()
200 child->thread.debug.dbcr0 |= DBCR0_IAC1; in set_instruction_bp()
206 child->thread.debug.iac2 = bp_info->addr; in set_instruction_bp()
207 child->thread.debug.dbcr0 |= DBCR0_IAC2; in set_instruction_bp()
211 child->thread.debug.iac3 = bp_info->addr; in set_instruction_bp()
212 child->thread.debug.dbcr0 |= DBCR0_IAC3; in set_instruction_bp()
215 child->thread.debug.iac4 = bp_info->addr; in set_instruction_bp()
216 child->thread.debug.dbcr0 |= DBCR0_IAC4; in set_instruction_bp()
223 child->thread.debug.dbcr0 |= DBCR0_IDM; in set_instruction_bp()
233 if ((child->thread.debug.dbcr0 & DBCR0_IAC1) == 0) in del_instruction_bp()
238 child->thread.debug.iac2 = 0; in del_instruction_bp()
241 child->thread.debug.iac1 = 0; in del_instruction_bp()
242 child->thread.debug.dbcr0 &= ~DBCR0_IAC1; in del_instruction_bp()
245 if ((child->thread.debug.dbcr0 & DBCR0_IAC2) == 0) in del_instruction_bp()
251 child->thread.debug.iac2 = 0; in del_instruction_bp()
252 child->thread.debug.dbcr0 &= ~DBCR0_IAC2; in del_instruction_bp()
256 if ((child->thread.debug.dbcr0 & DBCR0_IAC3) == 0) in del_instruction_bp()
261 child->thread.debug.iac4 = 0; in del_instruction_bp()
264 child->thread.debug.iac3 = 0; in del_instruction_bp()
265 child->thread.debug.dbcr0 &= ~DBCR0_IAC3; in del_instruction_bp()
268 if ((child->thread.debug.dbcr0 & DBCR0_IAC4) == 0) in del_instruction_bp()
274 child->thread.debug.iac4 = 0; in del_instruction_bp()
275 child->thread.debug.dbcr0 &= ~DBCR0_IAC4; in del_instruction_bp()
305 child->thread.debug.dac1 = (unsigned long)bp_info->addr; in set_dac()
308 child->thread.debug.dvc1 = in set_dac()
310 child->thread.debug.dbcr2 |= in set_dac()
316 } else if (child->thread.debug.dbcr2 & DBCR2_DAC12MODE) { in set_dac()
326 child->thread.debug.dac2 = (unsigned long)bp_info->addr; in set_dac()
329 child->thread.debug.dvc2 = in set_dac()
331 child->thread.debug.dbcr2 |= in set_dac()
339 child->thread.debug.dbcr0 |= DBCR0_IDM; in set_dac()
351 child->thread.debug.dac1 = 0; in del_dac()
354 if (child->thread.debug.dbcr2 & DBCR2_DAC12MODE) { in del_dac()
355 child->thread.debug.dac2 = 0; in del_dac()
356 child->thread.debug.dbcr2 &= ~DBCR2_DAC12MODE; in del_dac()
358 child->thread.debug.dbcr2 &= ~(DBCR2_DVC1M | DBCR2_DVC1BE); in del_dac()
361 child->thread.debug.dvc1 = 0; in del_dac()
368 if (child->thread.debug.dbcr2 & DBCR2_DAC12MODE) in del_dac()
371 child->thread.debug.dbcr2 &= ~(DBCR2_DVC2M | DBCR2_DVC2BE); in del_dac()
374 child->thread.debug.dvc2 = 0; in del_dac()
376 child->thread.debug.dac2 = 0; in del_dac()
418 if (child->thread.debug.dbcr0 & in set_dac_range()
423 child->thread.debug.dbcr0 |= (DBCR0_DAC1R | DBCR0_IDM); in set_dac_range()
425 child->thread.debug.dbcr0 |= (DBCR0_DAC1W | DBCR0_IDM); in set_dac_range()
426 child->thread.debug.dac1 = bp_info->addr; in set_dac_range()
427 child->thread.debug.dac2 = bp_info->addr2; in set_dac_range()
429 child->thread.debug.dbcr2 |= DBCR2_DAC12M; in set_dac_range()
431 child->thread.debug.dbcr2 |= DBCR2_DAC12MX; in set_dac_range()
433 child->thread.debug.dbcr2 |= DBCR2_DAC12MM; in set_dac_range()
486 if (!DBCR_ACTIVE_EVENTS(child->thread.debug.dbcr0, in ppc_del_hwdebug()
487 child->thread.debug.dbcr1)) { in ppc_del_hwdebug()
488 child->thread.debug.dbcr0 &= ~DBCR0_IDM; in ppc_del_hwdebug()