Rev 765 | Rev 831 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 765 | Rev 830 | ||
---|---|---|---|
Line 26... | Line 26... | ||
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | #include <arch/mm/tlb.h> |
29 | #include <arch/mm/tlb.h> |
30 | #include <mm/asid.h> |
30 | #include <mm/asid.h> |
31 | #include <genarch/mm/asid_fifo.h> |
- | |
32 | #include <mm/tlb.h> |
31 | #include <mm/tlb.h> |
33 | #include <mm/page.h> |
32 | #include <mm/page.h> |
34 | #include <mm/as.h> |
33 | #include <mm/as.h> |
35 | #include <arch/cp0.h> |
34 | #include <arch/cp0.h> |
36 | #include <panic.h> |
35 | #include <panic.h> |
Line 56... | Line 55... | ||
56 | */ |
55 | */ |
57 | void tlb_arch_init(void) |
56 | void tlb_arch_init(void) |
58 | { |
57 | { |
59 | int i; |
58 | int i; |
60 | 59 | ||
61 | asid_fifo_init(); |
- | |
62 | - | ||
63 | cp0_pagemask_write(TLB_PAGE_MASK_16K); |
60 | cp0_pagemask_write(TLB_PAGE_MASK_16K); |
64 | cp0_entry_hi_write(0); |
61 | cp0_entry_hi_write(0); |
65 | cp0_entry_lo0_write(0); |
62 | cp0_entry_lo0_write(0); |
66 | cp0_entry_lo1_write(0); |
63 | cp0_entry_lo1_write(0); |
67 | 64 |