Changeset 085d973 in mainline for genarch/src/mm/page_pt.c
- Timestamp:
- 2006-02-08T12:34:05Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5e3757d
- Parents:
- eb1b8b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
genarch/src/mm/page_pt.c
reb1b8b6 r085d973 66 66 67 67 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))); 69 69 memsetb(newpt, PAGE_SIZE, 0); 70 70 SET_PTL1_ADDRESS(ptl0, PTL0_INDEX(page), KA2PA(newpt)); … … 75 75 76 76 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))); 78 78 memsetb(newpt, PAGE_SIZE, 0); 79 79 SET_PTL2_ADDRESS(ptl1, PTL1_INDEX(page), KA2PA(newpt)); … … 84 84 85 85 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))); 87 87 memsetb(newpt, PAGE_SIZE, 0); 88 88 SET_PTL3_ADDRESS(ptl2, PTL2_INDEX(page), KA2PA(newpt));
Note:
See TracChangeset
for help on using the changeset viewer.