Changeset 2d01bbd in mainline for arch/mips32/src/mm/tlb.c


Ignore:
Timestamp:
2006-03-14T15:25:23Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6463264c
Parents:
8b1439e
Message:

Fixed shrinking of as area.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/src/mm/tlb.c

    r8b1439e r2d01bbd  
    3939#include <print.h>
    4040#include <debug.h>
     41#include <align.h>
    4142
    4243static void tlb_refill_fail(istate_t *istate);
     
    391392void prepare_entry_hi(entry_hi_t *hi, asid_t asid, __address addr)
    392393{
    393         hi->value = (((addr/PAGE_SIZE)/2)*PAGE_SIZE*2);
     394        hi->value = ALIGN_DOWN(addr, PAGE_SIZE * 2);
    394395        hi->asid = asid;
    395396}
     
    514515        ipl = interrupts_disable();
    515516
    516         for (i = 0; i < cnt; i++) {
     517        for (i = 0; i < cnt+1; i+=2) {
    517518                hi.value = 0;
    518519                prepare_entry_hi(&hi, asid, page + i * PAGE_SIZE);
Note: See TracChangeset for help on using the changeset viewer.