Changeset c867756e in mainline
- Timestamp:
- 2008-09-08T21:00:30Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e40e3007
- Parents:
- 91befde0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/mm/tlb.c
r91befde0 rc867756e 288 288 289 289 /* 290 * Fail if the page is not writable.291 */292 if (!pte->w)293 goto fail;294 295 /*296 290 * Read the faulting TLB entry. 297 291 */ … … 403 397 */ 404 398 pte = page_mapping_find(AS, badvaddr); 405 if (pte && pte->p ) {399 if (pte && pte->p && (pte->w || access != PF_ACCESS_WRITE)) { 406 400 /* 407 401 * Mapping found in page tables. … … 426 420 pte = page_mapping_find(AS, badvaddr); 427 421 ASSERT(pte && pte->p); 422 ASSERT(pte->w || access != PF_ACCESS_WRITE); 428 423 return pte; 429 424 break;
Note:
See TracChangeset
for help on using the changeset viewer.