aboutsummaryrefslogtreecommitdiff
path: root/arch/parisc/include/asm/assembly.h
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2009-01-18 18:13:53 +0100
committerKyle McMartin <kyle@treachery.i.cabal.ca>2009-03-13 01:18:27 -0400
commit2cfeb9a6755d4d7be1026422b6aced48e3bad492 (patch)
tree0ca39b8fa71b174bfc907d1b259e1470c45e0ccd /arch/parisc/include/asm/assembly.h
parent7f384ce780c6091968fc848b14f17b45cb849e14 (diff)
parisc: add braces around arguments in assembler macros
Add braces around the macro arguments, else for example "shl %r1, 5-3, %r2" would not expand to what you would assume. Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc/include/asm/assembly.h')
-rw-r--r--arch/parisc/include/asm/assembly.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/parisc/include/asm/assembly.h b/arch/parisc/include/asm/assembly.h
index ffb208840ec..ab7cc373ee5 100644
--- a/arch/parisc/include/asm/assembly.h
+++ b/arch/parisc/include/asm/assembly.h
@@ -129,27 +129,27 @@
/* Shift Left - note the r and t can NOT be the same! */
.macro shl r, sa, t
- dep,z \r, 31-\sa, 32-\sa, \t
+ dep,z \r, 31-(\sa), 32-(\sa), \t
.endm
/* The PA 2.0 shift left */
.macro shlw r, sa, t
- depw,z \r, 31-\sa, 32-\sa, \t
+ depw,z \r, 31-(\sa), 32-(\sa), \t
.endm
/* And the PA 2.0W shift left */
.macro shld r, sa, t
- depd,z \r, 63-\sa, 64-\sa, \t
+ depd,z \r, 63-(\sa), 64-(\sa), \t
.endm
/* Shift Right - note the r and t can NOT be the same! */
.macro shr r, sa, t
- extru \r, 31-\sa, 32-\sa, \t
+ extru \r, 31-(\sa), 32-(\sa), \t
.endm
/* pa20w version of shift right */
.macro shrd r, sa, t
- extrd,u \r, 63-\sa, 64-\sa, \t
+ extrd,u \r, 63-(\sa), 64-(\sa), \t
.endm
/* load 32-bit 'value' into 'reg' compensating for the ldil