xref: /kernel/linux/linux-5.10/arch/powerpc/include/asm/code-patching-asm.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/powerpc/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright 2018, Michael Ellerman, IBM Corporation.
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci#ifndef _ASM_POWERPC_CODE_PATCHING_ASM_H
68c2ecf20Sopenharmony_ci#define _ASM_POWERPC_CODE_PATCHING_ASM_H
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci/* Define a "site" that can be patched */
98c2ecf20Sopenharmony_ci.macro patch_site label name
108c2ecf20Sopenharmony_ci	.pushsection ".rodata"
118c2ecf20Sopenharmony_ci	.balign 4
128c2ecf20Sopenharmony_ci	.global \name
138c2ecf20Sopenharmony_ci\name:
148c2ecf20Sopenharmony_ci	.4byte	\label - .
158c2ecf20Sopenharmony_ci	.popsection
168c2ecf20Sopenharmony_ci.endm
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#endif /* _ASM_POWERPC_CODE_PATCHING_ASM_H */
19

Indexes created Thu Nov 07 10:32:03 CST 2024