- Timestamp:
- 2006-06-26T10:18:05Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2f40fe4
- Parents:
- e45f81a
- Location:
- test/mm
- Files:
-
- 2 edited
-
falloc1/test.c (modified) (2 diffs)
-
falloc2/test.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
test/mm/falloc1/test.c
re45f81a r7ee0e2f 55 55 allocated = 0; 56 56 for (i = 0; i < MAX_FRAMES >> order; i++) { 57 frames[allocated] = frame_alloc(order, FRAME_ATOMIC | FRAME_KA);57 frames[allocated] = (__address) frame_alloc(order, FRAME_ATOMIC | FRAME_KA); 58 58 59 59 if (ALIGN_UP(frames[allocated], FRAME_SIZE << order) != frames[allocated]) { … … 61 61 } 62 62 63 if ( status == 0) {63 if (frames[allocated]) { 64 64 allocated++; 65 65 } else { -
test/mm/falloc2/test.c
re45f81a r7ee0e2f 52 52 void falloc(void * arg) 53 53 { 54 int status,order, run, allocated, i;54 int order, run, allocated, i; 55 55 __u8 val = THREAD->tid % THREADS; 56 56 index_t k; … … 66 66 allocated = 0; 67 67 for (i = 0; i < (MAX_FRAMES >> order); i++) { 68 frames[allocated] = frame_alloc_rc(order, FRAME_ATOMIC | FRAME_KA, &status);69 if ( status == 0) {68 frames[allocated] = (__address)frame_alloc(order, FRAME_ATOMIC | FRAME_KA); 69 if (frames[allocated]) { 70 70 memsetb(frames[allocated], FRAME_SIZE << order, val); 71 71 allocated++;
Note:
See TracChangeset
for help on using the changeset viewer.
