Lines Matching full:pc
23 static inline uint32_t xtensa_cpu_process_stack_pc(uint32_t pc) in xtensa_cpu_process_stack_pc() argument
25 if (pc & 0x80000000) { in xtensa_cpu_process_stack_pc()
30 pc = (pc & 0x3fffffff) | mask; in xtensa_cpu_process_stack_pc()
32 pc = (pc & 0x3fffffff) | 0x40000000; in xtensa_cpu_process_stack_pc()
35 /* Minus 3 to get PC of previous instruction in xtensa_cpu_process_stack_pc()
38 return pc - 3; in xtensa_cpu_process_stack_pc()
87 * sp to get frame(i-1)'s sp and frame(i-2)'s pc in xtensa_backtrace_get_next_frame()
93 frame->pc = frame->next_pc; in xtensa_backtrace_get_next_frame()
100 /* Return true if both sp and pc of frame(i-1) are sane, in xtensa_backtrace_get_next_frame()
105 xtensa_cpu_process_stack_pc(frame->pc))); in xtensa_backtrace_get_next_frame()
133 xtensa_backtrace_get_start(&(stk_frame.pc), &(stk_frame.sp), in xtensa_backtrace_print()
137 mask = stk_frame.pc & 0xc0000000; in xtensa_backtrace_print()
141 xtensa_cpu_process_stack_pc(stk_frame.pc), in xtensa_backtrace_print()
147 xtensa_cpu_process_stack_pc(stk_frame.pc)) || in xtensa_backtrace_print()
148 /* Ignore the first corrupted PC in case of InstrFetchProhibited */ in xtensa_backtrace_print()
156 printk("0x%08x:0x%08x ", xtensa_cpu_process_stack_pc(stk_frame.pc), stk_frame.sp); in xtensa_backtrace_print()