[Top] [All Lists]

idt-mips tlb initialisation for PCI access..

Subject: idt-mips tlb initialisation for PCI access..
From: "atul srivastava" <>
Date: 3 Oct 2002 13:12:42 -0000
Original-recipient: rfc822;
Reply-to: "atul srivastava" <>

my understanding of PCI access and related TLB initialisation (from bootloader to OS) is as follow:-

1.typically in bootloader PCI bridge is initialised
for IO amd MEM space windows.

2.also TLB entry is setup for virtual - > physical mapping.
examplesake if my PCI memory window is at 0x40000000 .

I would setup a TLB entry for this with appropiate index VPN and PFN. i am all set to access PCI space i right..?

now my question is that after OS comes up initially it calls tlb_flush_all() ..should it again explicitly initialise the TLB entries in xxx_setup()..

if yes does the the following lines are doing the same..
offcourse adresses may have to changed in my BSP.

/* map 0xe0000000 virtual to 0x40000000 phys for PCI */

write_32bit_cp0_register(CP0_WIRED, 0); /* clear any previous stuff */
add_wired_entry(0x01000017, 0x01040017,xe0000000,PM_16M);

Best Regards,
Give your Company an email address like
ravi @  Sign up for Rediffmail Pro today!
Know more.

<Prev in Thread] Current Thread [Next in Thread>
  • idt-mips tlb initialisation for PCI access.., atul srivastava <=