]> Git Repo - linux.git/blob - arch/powerpc/include/asm/code-patching-asm.h
Merge tag 'for-linus-6.5a-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / arch / powerpc / include / asm / code-patching-asm.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright 2018, Michael Ellerman, IBM Corporation.
4  */
5 #ifndef _ASM_POWERPC_CODE_PATCHING_ASM_H
6 #define _ASM_POWERPC_CODE_PATCHING_ASM_H
7
8 /* Define a "site" that can be patched */
9 .macro patch_site label name
10         .pushsection ".rodata"
11         .balign 4
12         .global \name
13 \name:
14         .4byte  \label - .
15         .popsection
16 .endm
17
18 #endif /* _ASM_POWERPC_CODE_PATCHING_ASM_H */
This page took 0.036279 seconds and 4 git commands to generate.