aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2014-03-27 11:59:02 +0530
committerVineet Gupta <vgupta@synopsys.com>2015-04-13 15:14:56 +0530
commit1425d5e72c8c41300d66a24b81ad911cb1239e97 (patch)
treedb355c009a72721a21a5e390b8853044857a56cc /arch/arc
parentARC: [nsimosci] Update defconfig (diff)
downloadlinux-dev-1425d5e72c8c41300d66a24b81ad911cb1239e97.tar.xz
linux-dev-1425d5e72c8c41300d66a24b81ad911cb1239e97.zip
ARC: Fix WRITE_BCR
* There was obvious bit rot due to lack of use * Old naming was confusing since BCR are read only Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc')
-rw-r--r--arch/arc/include/asm/arcregs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arc/include/asm/arcregs.h b/arch/arc/include/asm/arcregs.h
index be33db8a2ee3..221380a73b0a 100644
--- a/arch/arc/include/asm/arcregs.h
+++ b/arch/arc/include/asm/arcregs.h
@@ -173,11 +173,11 @@
} \
}
-#define WRITE_BCR(reg, into) \
+#define WRITE_AUX(reg, into) \
{ \
unsigned int tmp; \
if (sizeof(tmp) == sizeof(into)) { \
- tmp = (*(unsigned int *)(into)); \
+ tmp = (*(unsigned int *)&(into)); \
write_aux_reg(reg, tmp); \
} else { \
extern void bogus_undefined(void); \