MIPS: CM: The CMGCRBase register is 64-bit on 64 bit kernels.
authorMarkos Chandras <markos.chandras@imgtec.com>
Thu, 9 Jul 2015 09:40:45 +0000 (10:40 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 26 Aug 2015 13:23:14 +0000 (15:23 +0200)
The CMGCRBase register (CP0, 15, 3) register is 64-bit on MIPS64
so we change its type to unsigned long.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/10644/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/mips-cm.c

index 3d2cb6f47898136672bf52f269cb56e8d858d0be..c390be1cecc92360ba303003301fda2f02d8a24b 100644 (file)
@@ -20,7 +20,7 @@ int mips_cm_is64;
 phys_addr_t __mips_cm_phys_base(void)
 {
        u32 config3 = read_c0_config3();
-       u32 cmgcr;
+       unsigned long cmgcr;
 
        /* Check the CMGCRBase register is implemented */
        if (!(config3 & MIPS_CONF3_CMGCR))