Explorar o código

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>
Vineet Gupta %!s(int64=11) %!d(string=hai) anos
pai
achega
1425d5e72c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      arch/arc/include/asm/arcregs.h

+ 2 - 2
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);	\