Linux MIPS Architecture development
 help / color / mirror / Atom feed
* linux port for Lexra 4280 based System On Chip (MDE9500)
@ 2002-12-25  9:23 Nemanja Popov
  2002-12-25  9:23 ` Nemanja Popov
  0 siblings, 1 reply; 2+ messages in thread
From: Nemanja Popov @ 2002-12-25  9:23 UTC (permalink / raw)
  To: linux-mips

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* linux port for Lexra 4280 based System On Chip (MDE9500)
  2002-12-25  9:23 linux port for Lexra 4280 based System On Chip (MDE9500) Nemanja Popov
@ 2002-12-25  9:23 ` Nemanja Popov
  0 siblings, 0 replies; 2+ messages in thread
From: Nemanja Popov @ 2002-12-25  9:23 UTC (permalink / raw)
  To: linux-mips

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-25 10:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-25  9:23 linux port for Lexra 4280 based System On Chip (MDE9500) Nemanja Popov
2002-12-25  9:23 ` Nemanja Popov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox