summaryrefslogtreecommitdiffstats
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
parent5971d81517752749a8155bb3f9b1ff1309bf3ea5 (diff)
downloadop-kernel-dev-1425d5e72c8c41300d66a24b81ad911cb1239e97.zip
op-kernel-dev-1425d5e72c8c41300d66a24b81ad911cb1239e97.tar.gz
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>
-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 be33db8..221380a 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); \
OpenPOWER on IntegriCloud