Lines Matching refs:pc
133 u8 opc, *pc, *sp, *next; in find_nextpc() local
138 pc = (u8 *) regs->pc; in find_nextpc()
140 opc = *pc; in find_nextpc()
144 next = pc + size; in find_nextpc()
151 x8 = (s8)pc[1]; in find_nextpc()
152 next = pc + x8; in find_nextpc()
159 READ_WORD16(pc + 1, &x16); in find_nextpc()
160 next = pc + x16; in find_nextpc()
167 READ_WORD32(pc + 1, &x32); in find_nextpc()
168 next = pc + x32; in find_nextpc()
181 sp += pc[2]; in find_nextpc()
189 next = pc + 2; in find_nextpc()
190 opc = pc[1]; in find_nextpc()
226 next = pc + 3; in find_nextpc()
227 opc = pc[1]; in find_nextpc()
232 READ_BYTE(pc+2, &x8); in find_nextpc()
233 next = pc + x8; in find_nextpc()
239 if (pc[1] == 0xff) { in find_nextpc()
241 READ_WORD16(pc + 2, &x16); in find_nextpc()
242 next = pc + x16; in find_nextpc()
244 next = pc + 4; in find_nextpc()
250 if (pc[1] == 0xff) { in find_nextpc()
252 READ_WORD32(pc + 2, &x32); in find_nextpc()
254 next = pc + x32; in find_nextpc()
274 u8 opc, *pc, *sp, *next; in singlestep_branch_setup() local
277 pc = (u8 *) regs->pc; in singlestep_branch_setup()
280 switch (pc[0]) { in singlestep_branch_setup()
286 next = pc; in singlestep_branch_setup()
290 pc[1] = 5; in singlestep_branch_setup()
291 pc[2] = 0; in singlestep_branch_setup()
292 next = pc + 5; in singlestep_branch_setup()
296 pc[1] = 7; in singlestep_branch_setup()
297 pc[2] = 0; in singlestep_branch_setup()
298 pc[3] = 0; in singlestep_branch_setup()
299 pc[4] = 0; in singlestep_branch_setup()
300 next = pc + 7; in singlestep_branch_setup()
304 next = pc + 3; in singlestep_branch_setup()
309 sp += pc[2]; in singlestep_branch_setup()
310 next = pc + 3; in singlestep_branch_setup()
315 next = pc + 2; in singlestep_branch_setup()
316 opc = pc[1]; in singlestep_branch_setup()
320 pc[0] = 0xfa; in singlestep_branch_setup()
321 pc[1] = 0xff; in singlestep_branch_setup()
322 pc[2] = 4; in singlestep_branch_setup()
323 pc[3] = 0; in singlestep_branch_setup()
324 next = pc + 4; in singlestep_branch_setup()
327 next = pc; in singlestep_branch_setup()
330 next = pc + 2; in singlestep_branch_setup()
334 next = pc + 2; in singlestep_branch_setup()
340 pc[2] = 4; in singlestep_branch_setup()
341 pc[3] = 0; in singlestep_branch_setup()
342 next = pc + 4; in singlestep_branch_setup()
346 pc[2] = 6; in singlestep_branch_setup()
347 pc[3] = 0; in singlestep_branch_setup()
348 pc[4] = 0; in singlestep_branch_setup()
349 pc[5] = 0; in singlestep_branch_setup()
350 next = pc + 6; in singlestep_branch_setup()
394 regs->pc = (unsigned long) p->addr; in disarm_kprobe()
406 cur_kprobe_orig_pc = regs->pc; in prepare_singlestep()
408 regs->pc = (unsigned long) cur_kprobe_ss_buf; in prepare_singlestep()
412 cur_kprobe_next_pc = cur_kprobe_orig_pc + (nextpc - regs->pc); in prepare_singlestep()
432 unsigned int *addr = (unsigned int *) regs->pc; in kprobe_handler()
498 regs->pc = cur_kprobe_orig_pc; in resume_execution()
501 *(unsigned *) regs->sp = regs->mdr = regs->pc + 5; in resume_execution()
505 *(unsigned *) regs->sp = regs->mdr = regs->pc + 7; in resume_execution()
512 regs->mdr = regs->pc + 2; in resume_execution()
519 *(unsigned *) regs->sp = regs->mdr = regs->pc + 4; in resume_execution()
524 *(unsigned *) regs->sp = regs->mdr = regs->pc + 6; in resume_execution()
529 regs->pc = cur_kprobe_next_pc; in resume_execution()
573 if (cur_kprobe_bp_addr != args->regs->pc) { in kprobe_exceptions_notify()
611 regs->pc = (unsigned long) jp->entry; in setjmp_pre_handler()
631 u8 *addr = (u8 *) regs->pc; in longjmp_break_handler()