Changeset 5fceec7 in mainline for arch/amd64/src/mm/page.c


Ignore:
Timestamp:
2006-03-17T00:40:01Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9f52563
Parents:
93165be
Message:

Cleanup of amd64 code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/src/mm/page.c

    r93165be r5fceec7  
    8686                for (cur = 0; cur < last_frame; cur += FRAME_SIZE) {
    8787                        /* Standard identity mapping */
    88                         page_mapping_insert(AS_KERNEL, PA2KA_IDENT(cur), cur, identity_flags);
     88                        page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, identity_flags);
    8989                }
    9090                /* Upper kernel mapping
     
    129129
    130130                SET_FRAME_FLAGS_ARCH(aptl_3, PTL3_INDEX_ARCH(oldpage), PAGE_NOT_PRESENT);
    131                 if (aptl_3 == helper_ptl3)
     131                if (KA2PA(aptl_3) == KA2PA(helper_ptl3))
    132132                        SET_PTL3_FLAGS_ARCH(aptl_2, PTL2_INDEX_ARCH(oldpage), PAGE_NOT_PRESENT);
    133                 if (aptl_2 == helper_ptl2)
     133                if (KA2PA(aptl_2) == KA2PA(helper_ptl2))
    134134                        SET_PTL2_FLAGS_ARCH(aptl_1, PTL1_INDEX_ARCH(oldpage), PAGE_NOT_PRESENT);
    135                 if (aptl_1 == helper_ptl1)
     135                if (KA2PA(aptl_1) == KA2PA(helper_ptl1))
    136136                        SET_PTL1_FLAGS_ARCH(&ptl_0, PTL0_INDEX_ARCH(oldpage), PAGE_NOT_PRESENT);
    137137        }
Note: See TracChangeset for help on using the changeset viewer.