linux port for Lexra 4280 based System On Chip (MDE9500)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to port linux on digital TV decoder chip MDE9500 which is based
on Lexra 4280. I've been studied linux port for Lexra processors and board
PB20K. I've found there configuration for MMU precisely TLB and its size.
There is function probe_tlb() in
cvs.sourceforge.net/cgi-bin/viewcvs.cgi/linux-mips/linux/arch/mips/mm/c-lexr
a.c which determines tlbsize.

 static void __init probe_tlb(void)
 {
 int i;
 unsigned long temp;

 mips_cpu.tlbsize = 8;         //     <<<<<<<<<<<

 temp = get_entryhi();

 for (i=63; i>0; i=i-8) {
  set_index(i<<8);
  set_entryhi(0xaaaaaa80);
  tlb_write_indexed();
  tlb_read();
  if (get_entryhi() == 0xaaaaaa80)
  {
      mips_cpu.tlbsize = (i + 1);
      break;
  }
 };
 set_entryhi(temp);
 printk("%d entry TLB.\n", mips_cpu.tlbsize);
}

  I've tried that function on my system and result was mips_cpu.tlbsize = 8,
BUT that value was set in the above marked line of code, not in the for
loop. Is that right value ???
My oppinion is that the tlbsize = 0. Correct me please :)

  From documentation for Lexra 4280 I haven't found anything that points to
TLB and stuff about MMU. Has anyone tried probe_tlb() on LX4280, and if so
what is the result.

NOTE: MDE9500 is embeded system and Lexra LX4280 in it probably has less
features than as a single chip (processor). I don't have any documenatation
about  that, so I don't know if my assumtion is true.

  If  tlbsize = 0 does that mean that there is no MMU and I'll be forced to
use uClinux and its support for processors whithout MMU  :(

Thanks in advance.

Regards,
Nemanja Popov






[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux