Changeset 567807b1 in mainline for arch/mips32/src/mm/tlb.c
- Timestamp:
- 2006-05-24T17:03:29Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d6bc2d5
- Parents:
- 82da5f5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/src/mm/tlb.c
r82da5f5 r567807b1 45 45 static void tlb_modified_fail(istate_t *istate); 46 46 47 static pte_t *find_mapping_and_check(__address badvaddr, i state_t *istate, int *pfrc);47 static pte_t *find_mapping_and_check(__address badvaddr, int access, istate_t *istate, int *pfrc); 48 48 49 49 static void prepare_entry_lo(entry_lo_t *lo, bool g, bool v, bool d, bool cacheable, __address pfn); … … 102 102 page_table_lock(AS, true); 103 103 104 pte = find_mapping_and_check(badvaddr, istate, &pfrc);104 pte = find_mapping_and_check(badvaddr, PF_ACCESS_READ, istate, &pfrc); 105 105 if (!pte) { 106 106 switch (pfrc) { … … 187 187 } 188 188 189 pte = find_mapping_and_check(badvaddr, istate, &pfrc);189 pte = find_mapping_and_check(badvaddr, PF_ACCESS_READ, istate, &pfrc); 190 190 if (!pte) { 191 191 switch (pfrc) { … … 271 271 } 272 272 273 pte = find_mapping_and_check(badvaddr, istate, &pfrc);273 pte = find_mapping_and_check(badvaddr, PF_ACCESS_WRITE, istate, &pfrc); 274 274 if (!pte) { 275 275 switch (pfrc) { … … 367 367 * 368 368 * @param badvaddr Faulting virtual address. 369 * @param access Access mode that caused the fault. 369 370 * @param istate Pointer to interrupted state. 370 371 * @param pfrc Pointer to variable where as_page_fault() return code will be stored. … … 372 373 * @return PTE on success, NULL otherwise. 373 374 */ 374 pte_t *find_mapping_and_check(__address badvaddr, i state_t *istate, int *pfrc)375 pte_t *find_mapping_and_check(__address badvaddr, int access, istate_t *istate, int *pfrc) 375 376 { 376 377 entry_hi_t hi; … … 405 406 */ 406 407 page_table_unlock(AS, true); 407 switch (rc = as_page_fault(badvaddr, istate)) {408 switch (rc = as_page_fault(badvaddr, access, istate)) { 408 409 case AS_PF_OK: 409 410 /*
Note:
See TracChangeset
for help on using the changeset viewer.