Changeset 2e9eae2 in mainline for test/mm/falloc2/test.c


Ignore:
Timestamp:
2006-06-23T16:03:53Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
757551a3
Parents:
a832dd7
Message:

Changed interface of frame_alloc/free to use address of frame instead of the pfn.
This makes it impossible to use >4GB of memory on 32-bit machines, but who cares…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mm/falloc2/test.c

    ra832dd7 r2e9eae2  
    6666                        allocated = 0;
    6767                        for (i = 0; i < (MAX_FRAMES >> order); i++) {
    68                                 frames[allocated] = PA2KA(PFN2ADDR(frame_alloc_rc(order, FRAME_ATOMIC | FRAME_KA, &status)));
     68                                frames[allocated] = frame_alloc_rc(order, FRAME_ATOMIC | FRAME_KA, &status);
    6969                                if (status == 0) {
    7070                                        memsetb(frames[allocated], FRAME_SIZE << order, val);
     
    8484                                        }
    8585                                }
    86                                 frame_free(ADDR2PFN(KA2PA(frames[i])));
     86                                frame_free(KA2PA(frames[i]));
    8787                        }
    8888                        printf("Thread #%d (cpu%d): Finished run.\n", THREAD->tid, CPU->id);
Note: See TracChangeset for help on using the changeset viewer.