Skip to content

Commit 038b0f5

Browse files
Markos Chandrasralfbaechle
authored andcommitted
MIPS: CM: The CMGCRBase register is 64-bit on 64 bit kernels.
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>
1 parent c0b584a commit 038b0f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/kernel/mips-cm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ int mips_cm_is64;
2020
phys_addr_t __mips_cm_phys_base(void)
2121
{
2222
u32 config3 = read_c0_config3();
23-
u32 cmgcr;
23+
unsigned long cmgcr;
2424

2525
/* Check the CMGCRBase register is implemented */
2626
if (!(config3 & MIPS_CONF3_CMGCR))

0 commit comments

Comments
 (0)