Rev 534 | Rev 594 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 534 | Rev 569 | ||
---|---|---|---|
Line 51... | Line 51... | ||
51 | /** Initialize TLB |
51 | /** Initialize TLB |
52 | * |
52 | * |
53 | * Initialize TLB. |
53 | * Initialize TLB. |
54 | * Invalidate all entries and mark wired entries. |
54 | * Invalidate all entries and mark wired entries. |
55 | */ |
55 | */ |
56 | void tlb_init_arch(void) |
56 | void tlb_arch_init(void) |
57 | { |
57 | { |
58 | int i; |
58 | int i; |
59 | 59 | ||
60 | cp0_pagemask_write(TLB_PAGE_MASK_16K); |
60 | cp0_pagemask_write(TLB_PAGE_MASK_16K); |
61 | cp0_entry_hi_write(0); |
61 | cp0_entry_hi_write(0); |
Line 396... | Line 396... | ||
396 | void prepare_entry_hi(entry_hi_t *hi, asid_t asid, __address addr) |
396 | void prepare_entry_hi(entry_hi_t *hi, asid_t asid, __address addr) |
397 | { |
397 | { |
398 | hi->value = (((addr/PAGE_SIZE)/2)*PAGE_SIZE*2); |
398 | hi->value = (((addr/PAGE_SIZE)/2)*PAGE_SIZE*2); |
399 | hi->asid = asid; |
399 | hi->asid = asid; |
400 | } |
400 | } |
- | 401 | ||
- | 402 | void tlb_print(void) |
|
- | 403 | { |
|
- | 404 | } |