Lines Matching refs:pc
60 void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp) in start_thread() argument
74 regs->cp0_epc = pc; in start_thread()
191 #define J_TARGET(pc,target) \ argument
192 (((unsigned long)(pc) & 0xf0000000) | ((target) << 2))
437 unsigned long pc, in unwind_stack_by_address() argument
453 if (pc == (unsigned long)ret_from_irq || in unwind_stack_by_address()
454 pc == (unsigned long)ret_from_exception) { in unwind_stack_by_address()
459 pc = regs->cp0_epc; in unwind_stack_by_address()
460 if (!user_mode(regs) && __kernel_text_address(pc)) { in unwind_stack_by_address()
463 return pc; in unwind_stack_by_address()
468 if (!kallsyms_lookup_size_offset(pc, &size, &ofs)) in unwind_stack_by_address()
474 pc = *ra; in unwind_stack_by_address()
476 return pc; in unwind_stack_by_address()
479 info.func = (void *)(pc - ofs); in unwind_stack_by_address()
496 pc = pc != *ra ? *ra : 0; in unwind_stack_by_address()
498 pc = ((unsigned long *)(*sp))[info.pc_offset]; in unwind_stack_by_address()
502 return __kernel_text_address(pc) ? pc : 0; in unwind_stack_by_address()
508 unsigned long pc, unsigned long *ra) in unwind_stack() argument
511 return unwind_stack_by_address(stack_page, sp, pc, ra); in unwind_stack()
520 unsigned long pc = 0; in get_wchan() local
531 pc = thread_saved_pc(task); in get_wchan()
536 while (in_sched_functions(pc)) in get_wchan()
537 pc = unwind_stack(task, &sp, pc, &ra); in get_wchan()
541 return pc; in get_wchan()