Home
last modified time | relevance | path

Searched refs:nip (Results 1 – 25 of 130) sorted by relevance

123456

/openbmc/linux/arch/powerpc/kernel/
H A Dtraps.c401 unsigned long nip = regs->nip; in hv_nmi_check_nonrecoverable() local
418 if ((nip >= 0x500 && nip < 0x600) || (nip >= 0x4500 && nip < 0x4600)) in hv_nmi_check_nonrecoverable()
420 if ((nip >= 0x980 && nip < 0xa00) || (nip >= 0x4980 && nip < 0x4a00)) in hv_nmi_check_nonrecoverable()
422 if ((nip >= 0xe00 && nip < 0xec0) || (nip >= 0x4e00 && nip < 0x4ec0)) in hv_nmi_check_nonrecoverable()
424 if ((nip >= 0xf80 && nip < 0xfa0) || (nip >= 0x4f80 && nip < 0x4fa0)) in hv_nmi_check_nonrecoverable()
537 unsigned int *nip = (unsigned int *)regs->nip; in check_io_access() local
550 nip -= 2; in check_io_access()
552 --nip; in check_io_access()
553 if (*nip == PPC_RAW_SYNC() || get_op(*nip) == OP_TRAP) { in check_io_access()
556 --nip; in check_io_access()
[all …]
H A Doptprobes.c51 unsigned long nip = 0; in can_optimize() local
72 regs.nip = addr; in can_optimize()
90 nip = regs.nip; in can_optimize()
93 return nip; in can_optimize()
160 unsigned long nip, size; in arch_prepare_optimized_kprobe() local
163 nip = can_optimize(p); in arch_prepare_optimized_kprobe()
164 if (!nip) in arch_prepare_optimized_kprobe()
186 b_offset = (unsigned long)(buff + TMPL_RET_IDX) - nip; in arch_prepare_optimized_kprobe()
237 patch_branch(buff + TMPL_RET_IDX, nip, 0); in arch_prepare_optimized_kprobe()
H A Dkprobes-ftrace.c16 void kprobe_ftrace_handler(unsigned long nip, unsigned long parent_nip, in kprobe_ftrace_handler() argument
27 bit = ftrace_test_recursion_trylock(nip, parent_nip); in kprobe_ftrace_handler()
32 p = get_kprobe((kprobe_opcode_t *)nip); in kprobe_ftrace_handler()
H A Dsyscall.c124 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); in system_call_exception()
141 _exception(SIGILL, regs, ILL_ILLOPC, regs->nip); in system_call_exception()
H A Dkgdb.c115 return kgdb_isremovedbreak(regs->nip); in kgdb_skipexception()
146 if (*(u32 *)regs->nip == BREAK_INSTR) in kgdb_handle_breakpoint()
223 PACK64(ptr, regs->nip); in sleeping_thread_to_gdb_regs()
311 { "pc", GDB_SIZEOF_REG, offsetof(struct pt_regs, nip) },
H A Dprocess.c1007 tsk->pid, thr->regs->nip, in tm_reclaim_task()
1398 unsigned long nip = regs->nip; in show_instructions() local
1409 nip = (unsigned long)phys_to_virt(regs->nip); in show_instructions()
1418 if (nip == pc) in show_instructions()
1437 pc = regs->nip - (NR_INSN_TO_PRINT * 3 / 4 * sizeof(int)); in show_user_instructions()
1454 seq_buf_printf(&s, regs->nip == pc ? "<%08x> " : "%08x ", instr); in show_user_instructions()
1557 regs->nip, regs->link, regs->ctr); in __show_regs()
1594 printk("NIP ["REG"] %pS\n", regs->nip, (void *)regs->nip); in __show_regs()
1838 kregs->nip = ppc_function_entry(f); in copy_thread()
1918 regs->nip = start; in start_thread()
[all …]
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dtraps.c92 regs->nip, regs->xer, regs->link, regs, regs->trap, regs->dar); in show_regs()
119 panic("Exception in kernel pc %lx signal %d",regs->nip,signr); in _exception()
138 if ((fixup = search_exception_table(regs->nip)) != 0) { in MachineCheckException()
139 regs->nip = fixup; in MachineCheckException()
193 regs->nip += 4; /* skip offending instruction */ in MachineCheckException()
195 regs->nip); in MachineCheckException()
197 printf("Returning back to 0x%08lx\n",regs->nip); in MachineCheckException()
257 regs->nip, regs->msr, regs->trap); in UnknownException()
273 regs->nip, regs->msr, regs->trap); in ExtIntException()
282 printf("Debugger trap at @ %lx\n", regs->nip ); in DebugException()
/openbmc/u-boot/arch/powerpc/cpu/mpc8xx/
H A Dtraps.c59 regs->nip, regs->xer, regs->link, regs, regs->trap, regs->dar); in show_regs()
82 panic("Exception in kernel pc %lx signal %d", regs->nip, signr); in _exception()
87 unsigned long fixup = search_exception_table(regs->nip); in MachineCheckException()
94 regs->nip = fixup; in MachineCheckException()
148 regs->nip, regs->msr, regs->trap); in UnknownException()
154 printf("Debugger trap at @ %lx\n", regs->nip); in DebugException()
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_hv_tm.c21 tfiar = vcpu->arch.regs.nip & ~0x3ull; in emulate_tx_failure()
56 vcpu->arch.regs.nip -= 4; in kvmhv_p9_tm_emulation()
79 vcpu->arch.cfar = vcpu->arch.regs.nip; in kvmhv_p9_tm_emulation()
80 vcpu->arch.regs.nip = vcpu->arch.shregs.srr0; in kvmhv_p9_tm_emulation()
113 vcpu->arch.cfar = vcpu->arch.regs.nip; in kvmhv_p9_tm_emulation()
114 vcpu->arch.regs.nip = vcpu->arch.ebbrr; in kvmhv_p9_tm_emulation()
129 vcpu->arch.regs.nip += 4; in kvmhv_p9_tm_emulation()
167 vcpu->arch.regs.nip += 4; in kvmhv_p9_tm_emulation()
206 vcpu->arch.regs.nip += 4; in kvmhv_p9_tm_emulation()
239 vcpu->arch.regs.nip += 4; in kvmhv_p9_tm_emulation()
H A Dbook3s_hv_tm_builtin.c46 vcpu->arch.cfar = vcpu->arch.regs.nip - 4; in kvmhv_p9_tm_emulation_early()
47 vcpu->arch.regs.nip = vcpu->arch.shregs.srr0; in kvmhv_p9_tm_emulation_early()
69 vcpu->arch.cfar = vcpu->arch.regs.nip - 4; in kvmhv_p9_tm_emulation_early()
70 vcpu->arch.regs.nip = mfspr(SPRN_EBBRR); in kvmhv_p9_tm_emulation_early()
116 vcpu->arch.regs.nip = vcpu->arch.tfhar; in kvmhv_emulate_tm_rollback()
/openbmc/u-boot/arch/powerpc/lib/
H A Dkgdb.c87 if (regs->nip == (unsigned long)breakinst) { in kgdb_enter()
89 regs->nip += 4; in kgdb_enter()
99 kdp->regs[0].val = regs->nip; in kgdb_enter()
111 regs->nip = kdp->exaddr; in kgdb_exit()
171 *ptr++ = regs->nip; in kgdb_getregs()
204 case 64: regs->nip = *ptr; break; in kgdb_putreg()
241 regs->nip = *ptr++; in kgdb_putregs()
/openbmc/u-boot/arch/powerpc/cpu/mpc86xx/
H A Dtraps.c64 regs->nip, regs->xer, regs->link, regs, regs->trap, regs->dar); in show_regs()
90 panic("Exception in kernel pc %lx signal %d", regs->nip, signr); in _exception()
101 if ((fixup = search_exception_table(regs->nip)) != 0) { in MachineCheckException()
102 regs->nip = fixup; in MachineCheckException()
152 unsigned char *p = regs ? (unsigned char *)(regs->nip) : NULL; in ProgramCheckException()
194 regs->nip, regs->msr, regs->trap); in UnknownException()
/openbmc/u-boot/arch/powerpc/cpu/mpc83xx/
H A Dtraps.c56 regs->nip, regs->xer, regs->link, regs, regs->trap, regs->dar); in show_regs()
81 panic("Exception in kernel pc %lx signal %d",regs->nip,signr); in _exception()
122 if ((fixup = search_exception_table(regs->nip)) != 0) { in MachineCheckException()
123 regs->nip = fixup; in MachineCheckException()
201 regs->nip, regs->msr, regs->trap); in UnknownException()
211 printf("Debugger trap at @ %lx\n", regs->nip ); in DebugException()
/openbmc/linux/arch/powerpc/perf/
H A Dcallchain_32.c58 static int is_sigreturn_32_address(unsigned int nip, unsigned int fp) in is_sigreturn_32_address() argument
60 if (nip == fp + offsetof(struct signal_frame_32, mctx.mc_pad)) in is_sigreturn_32_address()
63 nip == VDSO32_SYMBOL(current->mm->context.vdso, sigtramp32)) in is_sigreturn_32_address()
68 static int is_rt_sigreturn_32_address(unsigned int nip, unsigned int fp) in is_rt_sigreturn_32_address() argument
70 if (nip == fp + offsetof(struct rt_signal_frame_32, in is_rt_sigreturn_32_address()
74 nip == VDSO32_SYMBOL(current->mm->context.vdso, sigtramp_rt32)) in is_rt_sigreturn_32_address()
H A Dcallchain_64.c40 static int is_sigreturn_64_address(unsigned long nip, unsigned long fp) in is_sigreturn_64_address() argument
42 if (nip == fp + offsetof(struct signal_frame_64, tramp)) in is_sigreturn_64_address()
45 nip == VDSO64_SYMBOL(current->mm->context.vdso, sigtramp_rt64)) in is_sigreturn_64_address()
/openbmc/qemu/linux-user/ppc/
H A Dcpu_loop.c192 force_sig_fault(si_signo, si_code, env->nip); in cpu_loop()
198 force_sig_fault(TARGET_SIGILL, TARGET_ILL_COPROC, env->nip); in cpu_loop()
335 env->nip += 4; in cpu_loop()
340 env->nip -= 4; in cpu_loop()
355 force_sig_fault(TARGET_SIGTRAP, TARGET_TRAP_BRKPT, env->nip); in cpu_loop()
394 env->nip = regs->nip; in target_cpu_copy_regs()
/openbmc/qemu/target/ppc/
H A Dexcp_helper.c412 env->nip = vector; in powerpc_set_excp_state()
561 env->nip += 4; in powerpc_excp_40x()
677 env->nip += 4; in powerpc_excp_6xx()
825 env->nip += 4; in powerpc_excp_7xx()
975 env->nip += 4; in powerpc_excp_74xx()
1139 env->nip += 4; in powerpc_excp_booke()
1469 env->nip += 4; in powerpc_excp_books()
1488 env->nip += 4; in powerpc_excp_books()
2633 nip = (uint32_t)nip; in do_rfi()
2636 nip = (uint32_t)nip; in do_rfi()
[all …]
H A Dtrace-events33 ppc_excp_rfi(uint64_t nip, uint64_t msr) "Return from exception at 0x%" PRIx64 " with flags 0x%016"…
35 ppc_excp_isi(uint64_t msr, uint64_t nip) "ISI exception: msr=0x%016" PRIx64 " nip=0x%" PRIx64
37 ppc_excp_inval(uint64_t nip) "Invalid instruction at 0x%" PRIx64
/openbmc/qemu/linux-user/include/host/ppc/
H A Dhost-signal.h20 return uc->uc_mcontext.regs->nip; in host_signal_pc()
25 uc->uc_mcontext.regs->nip = pc; in host_signal_set_pc()
/openbmc/linux/arch/powerpc/include/asm/
H A Dptrace.h34 unsigned long nip; member
190 regs->nip = ip; in regs_set_return_ip()
202 regs_set_return_ip(regs, regs->nip + offset); in regs_add_return_ip()
207 return regs->nip; in instruction_pointer()
H A Dkvm_booke.h84 vcpu->arch.regs.nip = val; in kvmppc_set_pc()
89 return vcpu->arch.regs.nip; in kvmppc_get_pc()
H A Dinterrupt.h103 if (regs->nip >= (unsigned long)__end_soft_masked) in is_implicit_soft_masked()
106 return search_kernel_soft_mask_table(regs->nip); in is_implicit_soft_masked()
196 search_kernel_restart_table(regs->nip)); in interrupt_enter_prepare()
376 unsigned long rst = search_kernel_restart_table(regs->nip); in interrupt_nmi_exit_prepare()
/openbmc/u-boot/arch/powerpc/include/asm/
H A Dptrace.h28 PPC_REG nip; member
49 #define instruction_pointer(regs) ((regs)->nip)
/openbmc/linux/fs/gfs2/
H A Dinode.c1403 struct gfs2_inode *nip = NULL; in gfs2_rename() local
1416 nip = GFS2_I(d_inode(ndentry)); in gfs2_rename()
1417 if (ip == nip) in gfs2_rename()
1454 if (nip) { in gfs2_rename()
1469 if (nip) { in gfs2_rename()
1497 if (nip) { in gfs2_rename()
1508 if (nip->i_entries < 2) { in gfs2_rename()
1509 gfs2_consist_inode(nip); in gfs2_rename()
1513 if (nip->i_entries > 2) { in gfs2_rename()
1562 if (nip == NULL) { in gfs2_rename()
[all …]
/openbmc/linux/arch/powerpc/xmon/
H A Dxmon.c555 bp = at_breakpoint(regs->nip); in xmon_core()
618 ppc_inst_dump(regs->nip, 1, 0); in xmon_core()
679 bp = at_breakpoint(regs->nip); in xmon_core()
692 ppc_inst_dump(regs->nip, 1, 0); in xmon_core()
706 bp = at_breakpoint(regs->nip); in xmon_core()
714 bp = at_breakpoint(regs->nip); in xmon_core()
778 bp = at_breakpoint(regs->nip); in xmon_bpt()
876 off = nip - (unsigned long)bpt_table; in in_breakpoint_table()
1222 ppc_inst_dump(regs->nip, 1, 0); in do_step()
1794 pc = regs.nip; in xmon_show_stack()
[all …]

123456