Home
last modified time | relevance | path

Searched refs:patch_instruction (Results 1 – 16 of 16) sorted by relevance

/linux/arch/powerpc/lib/
A Dcode-patching.c609 patch_instruction(q, instr); in test_translate_branch()
618 patch_instruction(q, instr); in test_translate_branch()
629 patch_instruction(q, instr); in test_translate_branch()
640 patch_instruction(q, instr); in test_translate_branch()
650 patch_instruction(q, instr); in test_translate_branch()
661 patch_instruction(p, instr); in test_translate_branch()
665 patch_instruction(q, instr); in test_translate_branch()
672 patch_instruction(p, instr); in test_translate_branch()
675 patch_instruction(q, instr); in test_translate_branch()
684 patch_instruction(p, instr); in test_translate_branch()
[all …]
A Dfeature-fixups.c154 patch_instruction(dest, ppc_inst(instrs[0])); in do_stf_entry_barrier_fixups()
161 patch_instruction(dest, ppc_inst(instrs[0])); in do_stf_entry_barrier_fixups()
214 patch_instruction(dest, ppc_inst(instrs[0])); in do_stf_exit_barrier_fixups()
308 patch_instruction(dest, ppc_inst(instrs[0])); in do_uaccess_flush_fixups()
384 patch_instruction(dest, ppc_inst(instrs[0])); in __do_entry_flush_fixups()
391 patch_instruction(dest, ppc_inst(instrs[0])); in __do_entry_flush_fixups()
403 patch_instruction(dest, ppc_inst(instrs[0])); in __do_entry_flush_fixups()
410 patch_instruction(dest, ppc_inst(instrs[0])); in __do_entry_flush_fixups()
470 patch_instruction(dest, ppc_inst(instrs[0])); in __do_rfi_flush_fixups()
533 patch_instruction(dest, ppc_inst(instr)); in do_barrier_nospec_fixups_range()
[all …]
/linux/arch/powerpc/kernel/
A Doptprobes.c129 patch_instruction(addr++, ppc_inst(PPC_RAW_LIS(reg, PPC_HI(val)))); in patch_imm32_load_insns()
130 patch_instruction(addr, ppc_inst(PPC_RAW_ORI(reg, reg, PPC_LO(val)))); in patch_imm32_load_insns()
139 patch_instruction(addr++, ppc_inst(PPC_RAW_LIS(reg, PPC_HIGHEST(val)))); in patch_imm64_load_insns()
140 patch_instruction(addr++, ppc_inst(PPC_RAW_ORI(reg, reg, PPC_HIGHER(val)))); in patch_imm64_load_insns()
141 patch_instruction(addr++, ppc_inst(PPC_RAW_SLDI(reg, reg, 32))); in patch_imm64_load_insns()
142 patch_instruction(addr++, ppc_inst(PPC_RAW_ORIS(reg, reg, PPC_HI(val)))); in patch_imm64_load_insns()
143 patch_instruction(addr, ppc_inst(PPC_RAW_ORI(reg, reg, PPC_LO(val)))); in patch_imm64_load_insns()
195 rc = patch_instruction(buff + i, ppc_inst(*(optprobe_template_entry + i))); in arch_prepare_optimized_kprobe()
225 patch_instruction(buff + TMPL_CALL_HDLR_IDX, branch_op_callback); in arch_prepare_optimized_kprobe()
226 patch_instruction(buff + TMPL_EMULATE_IDX, branch_emulate_step); in arch_prepare_optimized_kprobe()
[all …]
A Dstatic_call.c20 err = patch_instruction(tramp + PPC_SCT_DATA, ppc_inst(target)); in arch_static_call_transform()
26 err = patch_instruction(tramp, ppc_inst(PPC_RAW_BLR())); in arch_static_call_transform()
30 err = patch_instruction(tramp, ppc_inst(PPC_RAW_NOP())); in arch_static_call_transform()
A Depapr_paravirt.c41 patch_instruction(epapr_hypercall_start + i, inst); in early_init_dt_scan_epapr()
43 patch_instruction(epapr_ev_idle_start + i, inst); in early_init_dt_scan_epapr()
A Dmodule_64.c432 if (patch_instruction(&entry->jump[i], in create_stub()
446 if (patch_instruction(&entry->jump[0], in create_stub()
450 if (patch_instruction(&entry->jump[1], in create_stub()
457 if (patch_instruction(((u32 *)&entry->funcdata) + i, in create_stub()
462 if (patch_instruction(&entry->magic, ppc_inst(STUB_MAGIC))) in create_stub()
520 if (patch_instruction(instruction, ppc_inst(PPC_INST_LD_TOC))) in restore_r2()
665 if (patch_instruction((u32 *)location, ppc_inst(value))) in apply_relocate_add()
A Dkprobes.c157 patch_instruction(p->ainsn.insn, insn); in arch_prepare_kprobe()
168 WARN_ON_ONCE(patch_instruction(p->addr, ppc_inst(BREAKPOINT_INSTRUCTION))); in arch_arm_kprobe()
174 WARN_ON_ONCE(patch_instruction(p->addr, ppc_inst(p->opcode))); in arch_disarm_kprobe()
A Djump_label.c19 patch_instruction(addr, ppc_inst(PPC_RAW_NOP())); in arch_jump_label_transform()
A Dcrash_dump.c48 patch_instruction(p, ppc_inst(PPC_RAW_NOP())); in create_trampoline()
A Dkgdb.c427 err = patch_instruction(addr, ppc_inst(BREAK_INSTR)); in kgdb_arch_set_breakpoint()
442 err = patch_instruction(addr, ppc_inst(instr)); in kgdb_arch_remove_breakpoint()
A Dsetup_32.c91 patch_instruction(addr, insn); /* replace b by bne cr0 */ in machine_init()
/linux/arch/powerpc/include/asm/
A Dcode-patching.h32 int patch_instruction(u32 *addr, struct ppc_inst instr);
42 return patch_instruction((u32 *)patch_site_addr(site), instr); in patch_instruction_site()
53 return patch_instruction(addr, ppc_inst((*addr & ~clr) | set)); in modify_instruction()
/linux/arch/powerpc/kernel/trace/
A Dftrace.c82 if (patch_instruction((u32 *)ip, new)) in ftrace_modify_code()
211 if (patch_instruction((u32 *)ip, pop)) { in __ftrace_make_nop()
283 if (patch_instruction((u32 *)ip, op)) in __ftrace_make_nop()
427 if (patch_instruction((u32 *)ip, ppc_inst(PPC_RAW_NOP()))) { in __ftrace_make_nop_kernel()
619 if (patch_instruction(ip, op))
/linux/arch/powerpc/platforms/86xx/
A Dmpc86xx_smp.c86 patch_instruction(vector, ppc_inst(save_vector)); in smp_86xx_kick_cpu()
/linux/arch/powerpc/platforms/powermac/
A Dsmp.c827 patch_instruction(vector, ppc_inst(save_vector)); in smp_core99_kick_cpu()
/linux/arch/powerpc/xmon/
A Dxmon.c953 patch_instruction(bp->instr, instr); in insert_bpts()
954 patch_instruction(ppc_inst_next(bp->instr, bp->instr), in insert_bpts()
958 if (patch_instruction((u32 *)bp->address, in insert_bpts()
999 && patch_instruction( in remove_bpts()

Completed in 25 milliseconds