sh7785: enable_mmu crashes

From: Altunbas Sabri (DC-IA/EAH2)
Date: Tue Dec 03 2013 - 04:21:13 EST


Hi,

I port linux-3.12.1 on my board with sh7785lcr. It crashes at the following point.

Can anybody give me please some hints.

The crash is at that point where mmu is initialised

void __init setup_arch(char **cmdline_p)
{
enable_mmu();
..
..
}


Befor step

/* Enable MMU */
__raw_writel(MMU_CONTROL_INIT, MMUCR);
mov.w @(0x80594E10,pc),r2
mov.l @(0x80594E20,pc),r1
mov.l r2,@r1 < ------ breakpoint
ctrl_barrier();
mov.l @(0x80594E24,pc),r1
icbi @r1

if (asid_cache(cpu) == NO_CONTEXT)
mov.w @(0x80594E12,pc),r2
mov.l @(0x80594E28,pc),r3
mul.l r2,r0 ; r2,cpu
sts macl,r1
add r3,r1


After step

unsigned int cpu = smp_processor_id();
shll r4 ; cmdline_p
shll r1
shll r4 ; cmdline_p

/* Enable MMU */
__raw_writel(MMU_CONTROL_INIT, MMUCR);
shll r1
shll r4
shll r1
ctrl_barrier();
shll r4
shll r1

if (asid_cache(cpu) == NO_CONTEXT)
shll r4
shll r1
shll r4
shll r1
shll r4
shll r1

Best regards
S.Altunbas


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/