Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * Copyright 2018, Michael Ellerman, IBM Corporation.
0004  */
0005 #ifndef _ASM_POWERPC_CODE_PATCHING_ASM_H
0006 #define _ASM_POWERPC_CODE_PATCHING_ASM_H
0007 
0008 /* Define a "site" that can be patched */
0009 .macro patch_site label name
0010     .pushsection ".rodata"
0011     .balign 4
0012     .global \name
0013 \name:
0014     .4byte  \label - .
0015     .popsection
0016 .endm
0017 
0018 #endif /* _ASM_POWERPC_CODE_PATCHING_ASM_H */