diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-07-15 11:48:15 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-09-03 12:07:41 +0200 |
commit | c46a2f01fb2bea6ae7e4e3f3f2aad65d8eda837d (patch) | |
tree | 1f4fc19991955f0c50addc39bd0f051e5c810436 /arch/mips/include | |
parent | 82eb8f7342cf722a8bf3d42e9982f56bff166b85 (diff) | |
download | blackbird-op-linux-c46a2f01fb2bea6ae7e4e3f3f2aad65d8eda837d.tar.gz blackbird-op-linux-c46a2f01fb2bea6ae7e4e3f3f2aad65d8eda837d.zip |
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')
-rw-r--r-- | arch/mips/include/asm/mipsregs.h | 2 |
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" \ |