summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-mips/mipsregs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-mips/mipsregs.h b/include/asm-mips/mipsregs.h
index 9692eb57a..b68caf3a4 100644
--- a/include/asm-mips/mipsregs.h
+++ b/include/asm-mips/mipsregs.h
@@ -243,7 +243,7 @@ set_cp0_##name(unsigned int set) \
unsigned int res; \
\
res = read_32bit_cp0_register(register); \
- res |= ~set; \
+ res |= set; \
write_32bit_cp0_register(register, res); \
\
return res; \
@@ -313,7 +313,7 @@ __BUILD_SET_CP0(config,CP0_CONFIG)
/*
* Bits specific to the R4640/R4650
*/
-#define ST0_UM <1 << 4)
+#define ST0_UM (1 << 4)
#define ST0_IL (1 << 23)
#define ST0_DL (1 << 24)