summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/code-patching.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2021-03-19 12:10:49 +0100
committerIngo Molnar <mingo@kernel.org>2021-03-19 12:10:49 +0100
commit01438749e36bfe53ea25c91568019be775a9782e (patch)
treef91f5abae2004863afda683589d034dcd2000ab8 /arch/powerpc/include/asm/code-patching.h
parent4faf62b1ef1a9367f7dcf8b7ce509980dfdcee83 (diff)
parentbee645788e07eea63055d261d2884ea45c2ba857 (diff)
downloadcachepc-linux-01438749e36bfe53ea25c91568019be775a9782e.tar.gz
cachepc-linux-01438749e36bfe53ea25c91568019be775a9782e.zip
Merge branch 'locking/urgent' into locking/core, to pick up dependent commits
We are applying further, lower-prio fixes on top of two ww_mutex fixes in locking/urgent. Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/powerpc/include/asm/code-patching.h')
-rw-r--r--arch/powerpc/include/asm/code-patching.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/code-patching.h b/arch/powerpc/include/asm/code-patching.h
index eacc9102c251..f1d029bf906e 100644
--- a/arch/powerpc/include/asm/code-patching.h
+++ b/arch/powerpc/include/asm/code-patching.h
@@ -73,9 +73,10 @@ void __patch_exception(int exc, unsigned long addr);
#endif
#define OP_RT_RA_MASK 0xffff0000UL
-#define LIS_R2 0x3c020000UL
-#define ADDIS_R2_R12 0x3c4c0000UL
-#define ADDI_R2_R2 0x38420000UL
+#define LIS_R2 (PPC_INST_ADDIS | __PPC_RT(R2))
+#define ADDIS_R2_R12 (PPC_INST_ADDIS | __PPC_RT(R2) | __PPC_RA(R12))
+#define ADDI_R2_R2 (PPC_INST_ADDI | __PPC_RT(R2) | __PPC_RA(R2))
+
static inline unsigned long ppc_function_entry(void *func)
{