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.
Tlb Load Exception
Exception Program Counter: 0x00000000
Status Register: 0x3404ff00
Cause Register: 0x01100008
Access Address : 0x00000000
Task: 0x83e2c760 ""
$0 = 0 t0 = 3ffffff s0 =
at = 3404ff00 t1 = fffffffffc1fffff s1 =
v0 = 0 t2 = ffffffffffff0000 s2 =
v1 = 1 t3 = 800000 s3 =
a0 = ffffffff801a6f30 t4 = ffffffffac000000 s4 =
a1 = ffffffff801a6f94 t5 = 40000 s5 =
a2 = ffffffff801508e8 t6 = 7fff s6
a3 = ffffffff80173e84 t7 = 24000000 s7 =
s8 = ffffffff83e2c268 k0 = 0
gp = ffffffff80172000 k1 = 0 t8
ra = ffffffff80179254 sp = ffffffff80173e80 t9 =
divlo = 1000 divhi = 0 sr = 3404ff00
pc = 0
Thanks in advance,