powerpc: Modify macro ready for %r0 register change
authorMichael Neuling <mikey@neuling.org>
Mon, 25 Jun 2012 13:33:09 +0000 (13:33 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 10 Jul 2012 09:17:52 +0000 (19:17 +1000)
The assembler doesn't take %r0 register arguments in braces, so remove them.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/ppc_asm.h

index 15444204a3a1d25049bca2b8115c7e88ed3d2d4f..19205f5cbacaabea8807d5aaed52d620e1d91f80 100644 (file)
@@ -295,14 +295,14 @@ n:
  */
 #ifdef __powerpc64__
 #define LOAD_REG_IMMEDIATE(reg,expr)           \
-       lis     (reg),(expr)@highest;           \
-       ori     (reg),(reg),(expr)@higher;      \
-       rldicr  (reg),(reg),32,31;              \
-       oris    (reg),(reg),(expr)@h;           \
-       ori     (reg),(reg),(expr)@l;
+       lis     reg,(expr)@highest;             \
+       ori     reg,reg,(expr)@higher;  \
+       rldicr  reg,reg,32,31;          \
+       oris    reg,reg,(expr)@h;               \
+       ori     reg,reg,(expr)@l;
 
 #define LOAD_REG_ADDR(reg,name)                        \
-       ld      (reg),name@got(r2)
+       ld      reg,name@got(r2)
 
 #define LOAD_REG_ADDRBASE(reg,name)    LOAD_REG_ADDR(reg,name)
 #define ADDROFF(name)                  0
@@ -313,12 +313,12 @@ n:
 #else /* 32-bit */
 
 #define LOAD_REG_IMMEDIATE(reg,expr)           \
-       lis     (reg),(expr)@ha;                \
-       addi    (reg),(reg),(expr)@l;
+       lis     reg,(expr)@ha;          \
+       addi    reg,reg,(expr)@l;
 
 #define LOAD_REG_ADDR(reg,name)                LOAD_REG_IMMEDIATE(reg, name)
 
-#define LOAD_REG_ADDRBASE(reg, name)   lis     (reg),name@ha
+#define LOAD_REG_ADDRBASE(reg, name)   lis     reg,name@ha
 #define ADDROFF(name)                  name@l
 
 /* offsets for stack frame layout */