mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
397 B
18 lines
397 B
/* SPDX-License-Identifier: GPL-2.0+ */ |
|
/* |
|
* Copyright 2018, Michael Ellerman, IBM Corporation. |
|
*/ |
|
#ifndef _ASM_POWERPC_CODE_PATCHING_ASM_H |
|
#define _ASM_POWERPC_CODE_PATCHING_ASM_H |
|
|
|
/* Define a "site" that can be patched */ |
|
.macro patch_site label name |
|
.pushsection ".rodata" |
|
.balign 4 |
|
.global \name |
|
\name: |
|
.4byte \label - . |
|
.popsection |
|
.endm |
|
|
|
#endif /* _ASM_POWERPC_CODE_PATCHING_ASM_H */
|
|
|