Changeset 7f1c620 in mainline for arch/mips32/src/mm/tlb.c
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/src/mm/tlb.c
r991779c5 r7f1c620 52 52 static void tlb_modified_fail(istate_t *istate); 53 53 54 static pte_t *find_mapping_and_check( __addressbadvaddr, int access, istate_t *istate, int *pfrc);55 56 static void prepare_entry_lo(entry_lo_t *lo, bool g, bool v, bool d, bool cacheable, __addresspfn);57 static void prepare_entry_hi(entry_hi_t *hi, asid_t asid, __addressaddr);54 static pte_t *find_mapping_and_check(uintptr_t badvaddr, int access, istate_t *istate, int *pfrc); 55 56 static void prepare_entry_lo(entry_lo_t *lo, bool g, bool v, bool d, bool cacheable, uintptr_t pfn); 57 static void prepare_entry_hi(entry_hi_t *hi, asid_t asid, uintptr_t addr); 58 58 59 59 /** Initialize TLB … … 97 97 entry_hi_t hi; 98 98 asid_t asid; 99 __addressbadvaddr;99 uintptr_t badvaddr; 100 100 pte_t *pte; 101 101 int pfrc; … … 167 167 { 168 168 tlb_index_t index; 169 __addressbadvaddr;169 uintptr_t badvaddr; 170 170 entry_lo_t lo; 171 171 entry_hi_t hi; … … 251 251 { 252 252 tlb_index_t index; 253 __addressbadvaddr;253 uintptr_t badvaddr; 254 254 entry_lo_t lo; 255 255 entry_hi_t hi; … … 384 384 * @return PTE on success, NULL otherwise. 385 385 */ 386 pte_t *find_mapping_and_check( __addressbadvaddr, int access, istate_t *istate, int *pfrc)386 pte_t *find_mapping_and_check(uintptr_t badvaddr, int access, istate_t *istate, int *pfrc) 387 387 { 388 388 entry_hi_t hi; … … 446 446 } 447 447 448 void prepare_entry_lo(entry_lo_t *lo, bool g, bool v, bool d, bool cacheable, __addresspfn)448 void prepare_entry_lo(entry_lo_t *lo, bool g, bool v, bool d, bool cacheable, uintptr_t pfn) 449 449 { 450 450 lo->value = 0; … … 456 456 } 457 457 458 void prepare_entry_hi(entry_hi_t *hi, asid_t asid, __addressaddr)458 void prepare_entry_hi(entry_hi_t *hi, asid_t asid, uintptr_t addr) 459 459 { 460 460 hi->value = ALIGN_DOWN(addr, PAGE_SIZE * 2); … … 568 568 * @param cnt Number of entries to invalidate. 569 569 */ 570 void tlb_invalidate_pages(asid_t asid, __addresspage, count_t cnt)570 void tlb_invalidate_pages(asid_t asid, uintptr_t page, count_t cnt) 571 571 { 572 572 int i;
Note:
See TracChangeset
for help on using the changeset viewer.