lkml.org 
[lkml]   [2013]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectsh7785: 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




\
 
 \ /
  Last update: 2013-12-03 10:41    [W:0.055 / U:1.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site