Commit c46a2f01 authored by Ralf Baechle's avatar Ralf Baechle

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: default avatarRalf Baechle <ralf@linux-mips.org>
Reported-by: default avatarChris Packham <judge.packham@gmail.com>
parent 82eb8f73
...@@ -1473,7 +1473,7 @@ do { \ ...@@ -1473,7 +1473,7 @@ do { \
*/ */
#define _read_32bit_cp1_register(source, gas_hardfloat) \ #define _read_32bit_cp1_register(source, gas_hardfloat) \
({ \ ({ \
int __res; \ unsigned int __res; \
\ \
__asm__ __volatile__( \ __asm__ __volatile__( \
" .set push \n" \ " .set push \n" \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment