Changeset 085d973 in mainline for test/mm/falloc1/test.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
-
test/mm/falloc1/test.c
reb1b8b6 r085d973 30 30 #include <mm/page.h> 31 31 #include <mm/frame.h> 32 #include <mm/ heap.h>32 #include <mm/slab.h> 33 33 #include <arch/mm/page.h> 34 34 #include <arch/types.h> … … 56 56 allocated = 0; 57 57 for (i = 0; i < MAX_FRAMES >> order; i++) { 58 frames[allocated] = frame_alloc_rc(order, FRAME_ATOMIC | FRAME_KA, &status);58 frames[allocated] = PA2KA(PFN2ADDR(frame_alloc_rc(order, FRAME_ATOMIC | FRAME_KA, &status))); 59 59 60 60 if (ALIGN_UP(frames[allocated], FRAME_SIZE << order) != frames[allocated]) { … … 81 81 printf("Deallocating ... "); 82 82 for (i = 0; i < allocated; i++) { 83 frame_free( frames[i]);83 frame_free(ADDR2PFN(KA2PA(frames[i]))); 84 84 } 85 85 printf("done.\n");
Note:
See TracChangeset
for help on using the changeset viewer.