code-patching.h (8804d5beef9189fd2eae5aee14e1628436742e02) code-patching.h (6c0d181daabcba286db9711eef8800b566fb1cce)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2#ifndef _ASM_POWERPC_CODE_PATCHING_H
3#define _ASM_POWERPC_CODE_PATCHING_H
4
5/*
6 * Copyright 2008, Michael Ellerman, IBM Corporation.
7 */
8

--- 45 unchanged lines hidden (view full) ---

54
55static inline int modify_instruction_site(s32 *site, unsigned int clr, unsigned int set)
56{
57 return modify_instruction((unsigned int *)patch_site_addr(site), clr, set);
58}
59
60int instr_is_relative_branch(struct ppc_inst instr);
61int instr_is_relative_link_branch(struct ppc_inst instr);
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2#ifndef _ASM_POWERPC_CODE_PATCHING_H
3#define _ASM_POWERPC_CODE_PATCHING_H
4
5/*
6 * Copyright 2008, Michael Ellerman, IBM Corporation.
7 */
8

--- 45 unchanged lines hidden (view full) ---

54
55static inline int modify_instruction_site(s32 *site, unsigned int clr, unsigned int set)
56{
57 return modify_instruction((unsigned int *)patch_site_addr(site), clr, set);
58}
59
60int instr_is_relative_branch(struct ppc_inst instr);
61int instr_is_relative_link_branch(struct ppc_inst instr);
62int instr_is_branch_to_addr(const struct ppc_inst *instr, unsigned long addr);
63unsigned long branch_target(const struct ppc_inst *instr);
64int translate_branch(struct ppc_inst *instr, const struct ppc_inst *dest,
65 const struct ppc_inst *src);
66extern bool is_conditional_branch(struct ppc_inst instr);
67#ifdef CONFIG_PPC_BOOK3E_64
68void __patch_exception(int exc, unsigned long addr);
69#define patch_exception(exc, name) do { \
70 extern unsigned int name; \

--- 119 unchanged lines hidden ---
62unsigned long branch_target(const struct ppc_inst *instr);
63int translate_branch(struct ppc_inst *instr, const struct ppc_inst *dest,
64 const struct ppc_inst *src);
65extern bool is_conditional_branch(struct ppc_inst instr);
66#ifdef CONFIG_PPC_BOOK3E_64
67void __patch_exception(int exc, unsigned long addr);
68#define patch_exception(exc, name) do { \
69 extern unsigned int name; \

--- 119 unchanged lines hidden ---