Browse Source

MIPS: Treat CP1 control registers as unsigned ints.

These are bitfields and treating them as signed values doesn't make
any sense.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Reported-by: Chris Packham <judge.packham@gmail.com>
Ralf Baechle 10 years ago
parent
commit
c46a2f01fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/mips/include/asm/mipsregs.h

+ 1 - 1
arch/mips/include/asm/mipsregs.h

@@ -1473,7 +1473,7 @@ do {									\
  */
 #define _read_32bit_cp1_register(source, gas_hardfloat)			\
 ({									\
-	int __res;							\
+	unsigned int __res;						\
 									\
 	__asm__ __volatile__(						\
 	"	.set	push					\n"	\