Changeset 5df1963 in mainline for kernel/genarch/src/mm/page_pt.c


Ignore:
Timestamp:
2013-09-10T21:47:25Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0511549
Parents:
a501e22c
Message:

bitmap frame allocator does not keep track of the size of the allocated frame blocks
to avoid memory leaks the number of allocated frames needs to be passed explicitly during deallocation

File:
1 edited

Legend:

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

    ra501e22c r5df1963  
    219219                memsetb(&ptl0[PTL0_INDEX(page)], sizeof(pte_t), 0);
    220220#endif
    221                 frame_free(KA2PA((uintptr_t) ptl3));
     221                frame_free(KA2PA((uintptr_t) ptl3), PTL3_FRAMES);
    222222        } else {
    223223                /*
     
    253253                memsetb(&ptl0[PTL0_INDEX(page)], sizeof(pte_t), 0);
    254254#endif
    255                 frame_free(KA2PA((uintptr_t) ptl2));
     255                frame_free(KA2PA((uintptr_t) ptl2), PTL2_FRAMES);
    256256        } else {
    257257                /*
     
    284284
    285285                memsetb(&ptl0[PTL0_INDEX(page)], sizeof(pte_t), 0);
    286                 frame_free(KA2PA((uintptr_t) ptl1));
     286                frame_free(KA2PA((uintptr_t) ptl1), PTL1_FRAMES);
    287287        }
    288288#endif /* PTL1_ENTRIES != 0 */
Note: See TracChangeset for help on using the changeset viewer.