Re: [RFC PATCH v1] mips: Use unsigned int when reading CP0 registers

2015-07-15 Thread Ralf Baechle
On Wed, Jul 15, 2015 at 10:44:30AM +1200, Chris Packham wrote: > Update __read_32bit_c0_register() and __read_32bit_c0_ctrl_register() to > use "unsigned int res;" instead of "int res;". There is little reason to > treat these register values as signed. They are either counters (which > by

Re: [RFC PATCH v1] mips: Use unsigned int when reading CP0 registers

2015-07-15 Thread Ralf Baechle
On Wed, Jul 15, 2015 at 10:44:30AM +1200, Chris Packham wrote: Update __read_32bit_c0_register() and __read_32bit_c0_ctrl_register() to use unsigned int res; instead of int res;. There is little reason to treat these register values as signed. They are either counters (which by definition are

[RFC PATCH v1] mips: Use unsigned int when reading CP0 registers

2015-07-14 Thread Chris Packham
Update __read_32bit_c0_register() and __read_32bit_c0_ctrl_register() to use "unsigned int res;" instead of "int res;". There is little reason to treat these register values as signed. They are either counters (which by definition are unsigned) or are made up of various bit fields to be

[RFC PATCH v1] mips: Use unsigned int when reading CP0 registers

2015-07-14 Thread Chris Packham
Update __read_32bit_c0_register() and __read_32bit_c0_ctrl_register() to use unsigned int res; instead of int res;. There is little reason to treat these register values as signed. They are either counters (which by definition are unsigned) or are made up of various bit fields to be interpreted as