RM9000x2 TLB load exception
All,
I'm trying to port the mips-kernel to a RM9000x2 based custom board.
The kernel file (mips 32) is loaded using VxWorks boot loader.
I got the to the point where the kernel starts loading, but exits with a 'TLB load exception'.
After putting in a number of printks, it seems that it fails on 'flush_icache_range' in arch/mips/mm/pg-r4k.c -> build_clear_page. Since I'm a newbie to this, any pointers to how to tackle this problem would be appreciated.
Exception:
Tlb Load Exception
Exception Program Counter: 0x00000000
Status Register: 0x3404ff00
Cause Register: 0x01100008
Access Address : 0x00000000
Task: 0x83e2c760 ""
$0 = 0 t0 = 3ffffff s0 = 24810e00 at = 3404ff00 t1 = fffffffffc1fffff s1 = ffffffffac800000 v0 = 0 t2 = ffffffffffff0000 s2 = ffffffffac800004 v1 = 1 t3 = 800000 s3 = ffffffffcc9e0200 a0 = ffffffff801a6f30 t4 = ffffffffac000000 s4 = ffffffffac800008 a1 = ffffffff801a6f94 t5 = 40000 s5 = ffffffffac80000c a2 = ffffffff801508e8 t6 = 7fff s6 = 0 a3 = ffffffff80173e84 t7 = 24000000 s7 = 24840020 s8 = ffffffff83e2c268 k0 = 0 gp = ffffffff80172000 k1 = 0 t8 = a ra = ffffffff80179254 sp = ffffffff80173e80 t9 = ffffffffac80fff8 divlo = 1000 divhi = 0 sr = 3404ff00
pc = 0
Thanks in advance,
Wim Acke
Quoted 8 lines · On Mon, Aug 02, 2004 at 11:19:27AM +0200, [email protected] wrote:
I'm trying to port the mips-kernel to a RM9000x2 based custom board. The kernel file (mips 32) is loaded using VxWorks boot loader. I got the to the point where the kernel starts loading, but exits with a 'TLB load exception'.
After putting in a number of printks, it seems that it fails on 'flush_icache_range' inarch/mips/mm/pg-r4k.c->build_clear_page. Since I'm a newbie to this, any pointers to how to tackle this problem would be appreciated.
Funny :-) This is a particularly crazy function where I decieded to generate the clear_function at runtime since we had to many versions optimized for the one or other processor or configuration which had become excessivly large.
Quoted 7 lines
Exception:
Tlb Load Exception
Exception Program Counter:0x00000000
Status Register:0x3404ff00
Cause Register:0x01100008
Access Address :0x00000000
Task:0x83e2c760""
[...]
The register dump is unseless since you didn't say what all the addresses point to.
Other information that's needed to make sense out of a bug report would be:
- gcc and binutils version used to compile the kernel
- kernel version and also where did you get it from (linux-mips.org?)
Ralf