^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0+ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright 2018, Michael Ellerman, IBM Corporation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #ifndef _ASM_POWERPC_CODE_PATCHING_ASM_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #define _ASM_POWERPC_CODE_PATCHING_ASM_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) /* Define a "site" that can be patched */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) .macro patch_site label name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) .pushsection ".rodata"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) .balign 4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) .global \name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) \name:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) .4byte \label - .
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) .popsection
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) .endm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #endif /* _ASM_POWERPC_CODE_PATCHING_ASM_H */