Changeset 085d973 in mainline for genarch/src/mm/page_pt.c


Ignore:
Timestamp:
2006-02-08T12:34:05Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5e3757d
Parents:
eb1b8b6
Message:

Cleanup o frame allocator.
Removed early_malloc & initial heap.
Will break ia64, ppc & sparc.
Added e820 table print.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • genarch/src/mm/page_pt.c

    reb1b8b6 r085d973  
    6666
    6767        if (GET_PTL1_FLAGS(ptl0, PTL0_INDEX(page)) & PAGE_NOT_PRESENT) {
    68                 newpt = frame_alloc(ONE_FRAME, FRAME_KA);
     68                newpt = PA2KA(PFN2ADDR(frame_alloc(ONE_FRAME, FRAME_KA)));
    6969                memsetb(newpt, PAGE_SIZE, 0);
    7070                SET_PTL1_ADDRESS(ptl0, PTL0_INDEX(page), KA2PA(newpt));
     
    7575
    7676        if (GET_PTL2_FLAGS(ptl1, PTL1_INDEX(page)) & PAGE_NOT_PRESENT) {
    77                 newpt = frame_alloc(ONE_FRAME, FRAME_KA);
     77                newpt = PA2KA(PFN2ADDR(frame_alloc(ONE_FRAME, FRAME_KA)));
    7878                memsetb(newpt, PAGE_SIZE, 0);
    7979                SET_PTL2_ADDRESS(ptl1, PTL1_INDEX(page), KA2PA(newpt));
     
    8484
    8585        if (GET_PTL3_FLAGS(ptl2, PTL2_INDEX(page)) & PAGE_NOT_PRESENT) {
    86                 newpt = frame_alloc(ONE_FRAME, FRAME_KA);
     86                newpt = PA2KA(PFN2ADDR(frame_alloc(ONE_FRAME, FRAME_KA)));
    8787                memsetb(newpt, PAGE_SIZE, 0);
    8888                SET_PTL3_ADDRESS(ptl2, PTL2_INDEX(page), KA2PA(newpt));
Note: See TracChangeset for help on using the changeset viewer.