summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-03-12 19:42:24 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-03-12 19:42:24 +0000
commita0ed19b6b4386842ec67326e68109392c0859923 (patch)
treec0d00469b6ca3453c199803738ddd2c6ae4106d8 /include
parent3980e5ba8fb2a1d74e120cc3a1c6a31c0755208b (diff)
Fixes for bugs reported by Dan Aizenstros.
Diffstat (limited to 'include')
-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)