Changeset 7f1c620 in mainline for test/mm/falloc1/test.c
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mm/falloc1/test.c
r991779c5 r7f1c620 41 41 42 42 void test(void) { 43 __address * frames = (__address *) malloc(MAX_FRAMES*sizeof(__address), 0);43 uintptr_t * frames = (uintptr_t *) malloc(MAX_FRAMES*sizeof(uintptr_t), 0); 44 44 int results[MAX_ORDER+1]; 45 45 … … 55 55 allocated = 0; 56 56 for (i = 0; i < MAX_FRAMES >> order; i++) { 57 frames[allocated] = ( __address) frame_alloc(order, FRAME_ATOMIC | FRAME_KA);57 frames[allocated] = (uintptr_t) frame_alloc(order, FRAME_ATOMIC | FRAME_KA); 58 58 59 59 if (ALIGN_UP(frames[allocated], FRAME_SIZE << order) != frames[allocated]) {
Note:
See TracChangeset
for help on using the changeset viewer.