summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/mipsregs.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-07-15 12:48:15 +0300
committerRalf Baechle <ralf@linux-mips.org>2015-09-03 13:07:41 +0300
commitc46a2f01fb2bea6ae7e4e3f3f2aad65d8eda837d (patch)
tree1f4fc19991955f0c50addc39bd0f051e5c810436 /arch/mips/include/asm/mipsregs.h
parent82eb8f7342cf722a8bf3d42e9982f56bff166b85 (diff)
downloadlinux-c46a2f01fb2bea6ae7e4e3f3f2aad65d8eda837d.tar.xz
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>
Diffstat (limited to 'arch/mips/include/asm/mipsregs.h')
-rw-r--r--arch/mips/include/asm/mipsregs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/mipsregs.h b/arch/mips/include/asm/mipsregs.h
index 07bf4e7109ac..b688c924a025 100644
--- a/arch/mips/include/asm/mipsregs.h
+++ b/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" \