diff options
author | Michael Neuling <mikey@neuling.org> | 2012-06-25 09:33:21 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-07-10 05:18:25 -0400 |
commit | cdaade71291e90d8e9cc8885ae5ebc20ed4ddfd8 (patch) | |
tree | a8f1f9ac62f72bf0c1297f97a87f8511a2c19a99 /arch/powerpc/include/asm/ppc-opcode.h | |
parent | 55a5db184667433add3c8136c9e3b27899c79d3c (diff) |
powerpc: Start using ___PPC_RA/B/S/T where necessary
Now have ___PPC_RA/B/S/T we can use it in some places. These are
places where we can't use the existing defines which will soon enforce
R0-R31 usage.
The macros being changed here are being used in inline asm, which
can't convert to enforce the R0-R31 usage.
bpf_jit uses a mix of both generated and non-generated with the same
code, so just convert all these to use the ___PPC_R versions which
won't enforce R usage later.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/ppc-opcode.h')
-rw-r--r-- | arch/powerpc/include/asm/ppc-opcode.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/powerpc/include/asm/ppc-opcode.h b/arch/powerpc/include/asm/ppc-opcode.h index 7ad07dfbfdf7..104cfefea4ad 100644 --- a/arch/powerpc/include/asm/ppc-opcode.h +++ b/arch/powerpc/include/asm/ppc-opcode.h | |||
@@ -180,13 +180,13 @@ | |||
180 | #define PPC_DCBZL(a, b) stringify_in_c(.long PPC_INST_DCBZL | \ | 180 | #define PPC_DCBZL(a, b) stringify_in_c(.long PPC_INST_DCBZL | \ |
181 | __PPC_RA(a) | __PPC_RB(b)) | 181 | __PPC_RA(a) | __PPC_RB(b)) |
182 | #define PPC_LDARX(t, a, b, eh) stringify_in_c(.long PPC_INST_LDARX | \ | 182 | #define PPC_LDARX(t, a, b, eh) stringify_in_c(.long PPC_INST_LDARX | \ |
183 | __PPC_RT(t) | __PPC_RA(a) | \ | 183 | ___PPC_RT(t) | ___PPC_RA(a) | \ |
184 | __PPC_RB(b) | __PPC_EH(eh)) | 184 | ___PPC_RB(b) | __PPC_EH(eh)) |
185 | #define PPC_LWARX(t, a, b, eh) stringify_in_c(.long PPC_INST_LWARX | \ | 185 | #define PPC_LWARX(t, a, b, eh) stringify_in_c(.long PPC_INST_LWARX | \ |
186 | __PPC_RT(t) | __PPC_RA(a) | \ | 186 | ___PPC_RT(t) | ___PPC_RA(a) | \ |
187 | __PPC_RB(b) | __PPC_EH(eh)) | 187 | ___PPC_RB(b) | __PPC_EH(eh)) |
188 | #define PPC_MSGSND(b) stringify_in_c(.long PPC_INST_MSGSND | \ | 188 | #define PPC_MSGSND(b) stringify_in_c(.long PPC_INST_MSGSND | \ |
189 | __PPC_RB(b)) | 189 | ___PPC_RB(b)) |
190 | #define PPC_POPCNTB(a, s) stringify_in_c(.long PPC_INST_POPCNTB | \ | 190 | #define PPC_POPCNTB(a, s) stringify_in_c(.long PPC_INST_POPCNTB | \ |
191 | __PPC_RA(a) | __PPC_RS(s)) | 191 | __PPC_RA(a) | __PPC_RS(s)) |
192 | #define PPC_POPCNTD(a, s) stringify_in_c(.long PPC_INST_POPCNTD | \ | 192 | #define PPC_POPCNTD(a, s) stringify_in_c(.long PPC_INST_POPCNTD | \ |
@@ -204,7 +204,7 @@ | |||
204 | #define PPC_WAIT(w) stringify_in_c(.long PPC_INST_WAIT | \ | 204 | #define PPC_WAIT(w) stringify_in_c(.long PPC_INST_WAIT | \ |
205 | __PPC_WC(w)) | 205 | __PPC_WC(w)) |
206 | #define PPC_TLBIE(lp,a) stringify_in_c(.long PPC_INST_TLBIE | \ | 206 | #define PPC_TLBIE(lp,a) stringify_in_c(.long PPC_INST_TLBIE | \ |
207 | __PPC_RB(a) | __PPC_RS(lp)) | 207 | ___PPC_RB(a) | ___PPC_RS(lp)) |
208 | #define PPC_TLBSRX_DOT(a,b) stringify_in_c(.long PPC_INST_TLBSRX_DOT | \ | 208 | #define PPC_TLBSRX_DOT(a,b) stringify_in_c(.long PPC_INST_TLBSRX_DOT | \ |
209 | __PPC_RA(a) | __PPC_RB(b)) | 209 | __PPC_RA(a) | __PPC_RB(b)) |
210 | #define PPC_TLBIVAX(a,b) stringify_in_c(.long PPC_INST_TLBIVAX | \ | 210 | #define PPC_TLBIVAX(a,b) stringify_in_c(.long PPC_INST_TLBIVAX | \ |