Messages in this thread | | | From | "Altunbas Sabri (DC-IA/EAH2)" <> | Date | Tue, 3 Dec 2013 10:20:09 +0100 | Subject | sh7785: enable_mmu crashes |
| |
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
| |