Changeset 2d01bbd in mainline for arch/mips32/src/mm/tlb.c
- Timestamp:
- 2006-03-14T15:25:23Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6463264c
- Parents:
- 8b1439e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/src/mm/tlb.c
r8b1439e r2d01bbd 39 39 #include <print.h> 40 40 #include <debug.h> 41 #include <align.h> 41 42 42 43 static void tlb_refill_fail(istate_t *istate); … … 391 392 void prepare_entry_hi(entry_hi_t *hi, asid_t asid, __address addr) 392 393 { 393 hi->value = (((addr/PAGE_SIZE)/2)*PAGE_SIZE*2);394 hi->value = ALIGN_DOWN(addr, PAGE_SIZE * 2); 394 395 hi->asid = asid; 395 396 } … … 514 515 ipl = interrupts_disable(); 515 516 516 for (i = 0; i < cnt ; i++) {517 for (i = 0; i < cnt+1; i+=2) { 517 518 hi.value = 0; 518 519 prepare_entry_hi(&hi, asid, page + i * PAGE_SIZE);
Note:
See TracChangeset
for help on using the changeset viewer.