Changeset 7f1c620 in mainline for test/mm/falloc2/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/falloc2/test.c
r991779c5 r7f1c620 53 53 { 54 54 int order, run, allocated, i; 55 __u8val = THREAD->tid % THREADS;55 uint8_t val = THREAD->tid % THREADS; 56 56 index_t k; 57 57 58 __address * frames = (__address *) malloc(MAX_FRAMES * sizeof(__address), FRAME_ATOMIC);58 uintptr_t * frames = (uintptr_t *) malloc(MAX_FRAMES * sizeof(uintptr_t), FRAME_ATOMIC); 59 59 ASSERT(frames != NULL); 60 60 … … 66 66 allocated = 0; 67 67 for (i = 0; i < (MAX_FRAMES >> order); i++) { 68 frames[allocated] = ( __address)frame_alloc(order, FRAME_ATOMIC | FRAME_KA);68 frames[allocated] = (uintptr_t)frame_alloc(order, FRAME_ATOMIC | FRAME_KA); 69 69 if (frames[allocated]) { 70 70 memsetb(frames[allocated], FRAME_SIZE << order, val); … … 79 79 for (i = 0; i < allocated; i++) { 80 80 for (k = 0; k <= ((FRAME_SIZE << order) - 1); k++) { 81 if ((( __u8*) frames[i])[k] != val) {81 if (((uint8_t *) frames[i])[k] != val) { 82 82 printf("Thread #%d (cpu%d): Unexpected data (%d) in block %p offset %#zx\n", THREAD->tid, CPU->id, ((char *) frames[i])[k], frames[i], k); 83 83 failed();
Note:
See TracChangeset
for help on using the changeset viewer.