Home
last modified time | relevance | path

Searched refs:tpc (Results 1 – 25 of 34) sorted by relevance

12

/arch/sparc/mm/
Dfault_64.c79 regs->tpc); in bad_kernel_pc()
84 unhandled_fault(regs->tpc, current, regs); in bad_kernel_pc()
94 static unsigned int get_user_insn(unsigned long tpc) in get_user_insn() argument
96 pgd_t *pgdp = pgd_offset(current->mm, tpc); in get_user_insn()
105 pudp = pud_offset(pgdp, tpc); in get_user_insn()
112 pmdp = pmd_offset(pudp, tpc); in get_user_insn()
119 pa += tpc & ~HPAGE_MASK; in get_user_insn()
128 ptep = pte_offset_map(pmdp, tpc); in get_user_insn()
132 pa += (tpc & ~PAGE_MASK); in get_user_insn()
160 (void *)regs->tpc, (void *)regs->u_regs[UREG_I7], in show_signal_msg()
[all …]
/arch/sparc/kernel/
Dkgdb_64.c37 gdb_regs[GDB_PC] = regs->tpc; in pt_regs_to_gdb_regs()
105 regs->tpc = gdb_regs[GDB_PC]; in gdb_regs_to_pt_regs()
148 linux_regs->tpc = addr; in kgdb_arch_handle_exception()
155 if (linux_regs->tpc == (unsigned long) arch_kgdb_breakpoint) { in kgdb_arch_handle_exception()
156 linux_regs->tpc = linux_regs->tnpc; in kgdb_arch_handle_exception()
194 regs->tpc = ip; in kgdb_arch_set_pc()
195 regs->tnpc = regs->tpc + 4; in kgdb_arch_set_pc()
Dtraps_64.c61 unsigned long tpc; member
81 p->trapstack[i].tstate, p->trapstack[i].tpc, in dump_tl1_traplog()
83 printk("TRAPLOG: TPC<%pS>\n", (void *) p->trapstack[i].tpc); in dump_tl1_traplog()
107 regs->tpc &= 0xffffffff; in bad_trap()
113 info.si_addr = (void __user *)regs->tpc; in bad_trap()
206 regs->tpc &= 0xffffffff; in spitfire_insn_access_exception()
212 info.si_addr = (void __user *)regs->tpc; in spitfire_insn_access_exception()
247 regs->tpc &= 0xffffffff; in sun4v_insn_access_exception()
273 if (get_user(insn, (u32 __user *)regs->tpc) == -EFAULT) in is_no_fault_exception()
320 entry = search_exception_tables(regs->tpc); in spitfire_data_access_exception()
[all …]
Dsignal_64.c82 regs->tpc = pc; in sparc64_set_context()
170 regs->tpc = (regs->tnpc & 0xffffffff); in sparc64_get_context()
173 regs->tpc = regs->tnpc; in sparc64_get_context()
185 err |= __put_user(regs->tpc, &((*grp)[MC_PC])); in sparc64_get_context()
261 unsigned long tpc, tnpc, tstate, ufp; in do_rt_sigreturn() local
285 err = __get_user(tpc, &sf->regs.tpc); in do_rt_sigreturn()
288 tpc &= 0xffffffff; in do_rt_sigreturn()
291 err |= ((tpc | tnpc) & 3); in do_rt_sigreturn()
317 regs->tpc = tpc; in do_rt_sigreturn()
379 regs->tpc, regs->u_regs[UREG_I7]); in setup_rt_frame()
[all …]
Dkprobes.c108 regs->tpc = (unsigned long) p->addr; in prepare_singlestep()
111 regs->tpc = (unsigned long) &p->ainsn.insn[0]; in prepare_singlestep()
119 void *addr = (void *) regs->tpc; in kprobe_handler()
211 if (regs->tnpc == regs->tpc + 0x4UL) in relbranch_fixup()
289 regs->tpc = kcb->kprobe_orig_tnpc; in resume_execution()
340 regs->tpc = (unsigned long)cur->addr; in kprobe_fault_handler()
374 entry = search_exception_tables(regs->tpc); in kprobe_fault_handler()
376 regs->tpc = entry->fixup; in kprobe_fault_handler()
377 regs->tnpc = regs->tpc + 4; in kprobe_fault_handler()
452 regs->tpc = (unsigned long) jp->entry; in setjmp_pre_handler()
[all …]
Duprobes.c108 if (regs->tnpc == regs->tpc + 0x4UL) in relbranch_fixup()
189 regs->tpc += 4; in arch_uprobe_skip_sstep()
211 autask->saved_tpc = regs->tpc; in arch_uprobe_pre_xol()
238 regs->tpc = autask->saved_tnpc; in arch_uprobe_post_xol()
242 regs->tpc = autask->saved_tnpc+4; in arch_uprobe_post_xol()
Dsignal32.c194 regs->tpc = pc; in do_sigreturn32()
283 regs->tpc = pc; in do_rt_sigreturn32()
448 regs->tpc, regs->u_regs[UREG_I7]); in setup_frame32()
457 regs->tpc &= 0xffffffff; in setup_frame32()
460 err = put_user(regs->tpc, &sf->info.si_regs.pc); in setup_frame32()
530 regs->tpc = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame32()
531 regs->tnpc = (regs->tpc + 4); in setup_frame32()
533 regs->tpc &= 0xffffffff; in setup_frame32()
583 regs->tpc, regs->u_regs[UREG_I7]); in setup_rt_frame32()
592 regs->tpc &= 0xffffffff; in setup_rt_frame32()
[all …]
Dunaligned_64.c241 regs->tpc = regs->tnpc; in advance()
244 regs->tpc &= 0xffffffff; in advance()
265 entry = search_exception_tables(regs->tpc); in kernel_mna_trap_fault()
287 regs->tpc = entry->fixup; in kernel_mna_trap_fault()
288 regs->tnpc = regs->tpc + 4; in kernel_mna_trap_fault()
302 regs->tpc, (void *) regs->tpc); in log_unaligned()
329 "at <%016lx>.\n", regs->tpc); in kernel_unaligned_trap()
599 unsigned long pc = regs->tpc; in handle_lddfmna()
663 unsigned long pc = regs->tpc; in handle_stdfmna()
Detrap_64.S55 1: rdpr %tpc, %g3
201 rdpr %tpc, %g3
211 rdpr %tpc, %g3
226 rdpr %tpc, %g3
236 rdpr %tpc, %g3
Dprocess_64.c182 regs->tpc, regs->tnpc, regs->y, print_tainted()); in show_regs()
183 printk("TPC: <%pS>\n", (void *) regs->tpc); in show_regs()
214 rp->tpc = regs->tpc; in __global_reg_self()
286 gp->tstate, gp->tpc, gp->tnpc, in arch_trigger_cpumask_backtrace()
292 (void *) gp->tpc, in arch_trigger_cpumask_backtrace()
298 gp->tpc, gp->o7, gp->i7, gp->rpc); in arch_trigger_cpumask_backtrace()
569 regs->tpc, in fault_in_user_windows()
Dutrap.S25 rdpr %tpc, %l6
Dspiterrs.S174 rdpr %tpc, %g3
211 rdpr %tpc, %g5 ! IMMU has no SFAR, use TPC
230 rdpr %tpc, %g5 ! IMMU has no SFAR, use TPC
Dstacktrace.c47 pc = regs->tpc; in __save_stack_trace()
Dsys_sparc_64.c508 regs->tpc &= 0xffffffff; in sparc_breakpoint()
512 printk ("TRAP: Entering kernel PC=%lx, nPC=%lx\n", regs->tpc, regs->tnpc); in sparc_breakpoint()
517 info.si_addr = (void __user *)regs->tpc; in sparc_breakpoint()
521 printk ("TRAP: Returning to space: PC=%lx nPC=%lx\n", regs->tpc, regs->tnpc); in sparc_breakpoint()
Dmisctrap.S40 rdpr %tpc, %g3
Dktlb.S94 rdpr %tpc, %g5
Dtsb.S287 rdpr %tpc, %g5
306 rdpr %tpc, %g3 ! Prepare winfixup TNPC
Dptrace_64.c348 &regs->tpc, in genregs64_set()
596 reg = regs->tpc; in genregs32_get()
723 regs->tpc = reg; in genregs32_set()
/arch/sparc/include/asm/
Dprocessor_64.h107 regs->tpc = ((pc & (~3)) - 4); \
108 regs->tnpc = regs->tpc + 4; \
151 regs->tpc = ((pc & (~3)) - 4); \
152 regs->tnpc = regs->tpc + 4; \
195 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->tpc)
Dperf_event.h23 (regs)->tpc = (ip); \
24 (regs)->tnpc = (regs)->tpc + 4; \
Dptrace.h42 unsigned long tpc; member
65 #define instruction_pointer(regs) ((regs)->tpc)
67 (regs)->tpc = (val); \
Dsigcontext.h78 unsigned long tpc; member
/arch/powerpc/kernel/
Dsetup-common.c419 static void __init cpu_init_thread_core_maps(int tpc) in cpu_init_thread_core_maps() argument
423 threads_per_core = tpc; in cpu_init_thread_core_maps()
424 threads_per_subcore = tpc; in cpu_init_thread_core_maps()
430 threads_shift = ilog2(tpc); in cpu_init_thread_core_maps()
431 BUG_ON(tpc != (1 << threads_shift)); in cpu_init_thread_core_maps()
433 for (i = 0; i < tpc; i++) in cpu_init_thread_core_maps()
437 tpc, tpc > 1 ? "s" : ""); in cpu_init_thread_core_maps()
/arch/sparc/math-emu/
Dmath_64.c154 regs->tpc = regs->tnpc; in record_exception()
169 unsigned long pc = regs->tpc; in do_mathemu()
348 regs->tpc = regs->tnpc; in do_mathemu()
520 regs->tpc = regs->tnpc; in do_mathemu()
/arch/sparc/include/uapi/asm/
Dptrace.h25 unsigned long tpc; member

12