Skip to content

Commit

Permalink
MIPS: CM: The CMGCRBase register is 64-bit on 64 bit kernels.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markos Chandras authored and Ralf Baechle committed Aug 26, 2015
1 parent c0b584a commit 038b0f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/mips-cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 038b0f5

Please sign in to comment.