]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/mips/include/asm/mipsregs.h
mips: Use unsigned int when reading c0 registers
[karo-tx-uboot.git] / arch / mips / include / asm / mipsregs.h
index 3571e4fdf2e2867153ed1677cd5d12c639a09047..c7a08499ff2b51977702f02bf2f5fc212ec9f2be 100644 (file)
@@ -594,7 +594,7 @@ do {                                                                \
  */
 
 #define __read_32bit_c0_register(source, sel)                          \
-({ int __res;                                                          \
+({ unsigned int __res;                                                 \
        if (sel == 0)                                                   \
                __asm__ __volatile__(                                   \
                        "mfc0\t%0, " #source "\n\t"                     \
@@ -676,7 +676,7 @@ do {                                                                        \
  * On RM7000/RM9000 these are uses to access cop0 set 1 registers
  */
 #define __read_32bit_c0_ctrl_register(source)                          \
-({ int __res;                                                          \
+({ unsigned int __res;                                                 \
        __asm__ __volatile__(                                           \
                "cfc0\t%0, " #source "\n\t"                             \
                : "=r" (__res));                                        \