diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-07-15 09:48:15 (GMT) |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-09-03 10:07:41 (GMT) |
commit | c46a2f01fb2bea6ae7e4e3f3f2aad65d8eda837d (patch) | |
tree | 1f4fc19991955f0c50addc39bd0f051e5c810436 /arch/mips/include/asm/mipsregs.h | |
parent | 82eb8f7342cf722a8bf3d42e9982f56bff166b85 (diff) | |
download | linux-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.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 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" \ |