ARC: Fix WRITE_BCR
authorVineet Gupta <vgupta@synopsys.com>
Thu, 27 Mar 2014 06:29:02 +0000 (11:59 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 13 Apr 2015 09:44:56 +0000 (15:14 +0530)
* 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>
arch/arc/include/asm/arcregs.h

index be33db8a2ee3c3af4ea3d2c9670d4388933a1969..221380a73b0a24ec06835f286bfdbc1d2937c79d 100644 (file)
        }                                               \
 }
 
-#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);      \