summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-07-15 11:48:15 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-09-03 12:07:41 +0200
commitc46a2f01fb2bea6ae7e4e3f3f2aad65d8eda837d (patch)
tree1f4fc19991955f0c50addc39bd0f051e5c810436 /arch/mips
parent82eb8f7342cf722a8bf3d42e9982f56bff166b85 (diff)
downloadop-kernel-dev-c46a2f01fb2bea6ae7e4e3f3f2aad65d8eda837d.zip
op-kernel-dev-c46a2f01fb2bea6ae7e4e3f3f2aad65d8eda837d.tar.gz
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')
-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 07bf4e7..b688c92 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" \
OpenPOWER on IntegriCloud