Changeset 7f1c620 in mainline for test/mm/falloc2/test.c


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

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

    r991779c5 r7f1c620  
    5353{
    5454        int order, run, allocated, i;
    55         __u8 val = THREAD->tid % THREADS;
     55        uint8_t val = THREAD->tid % THREADS;
    5656        index_t k;
    5757       
    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);
    5959        ASSERT(frames != NULL);
    6060       
     
    6666                        allocated = 0;
    6767                        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);
    6969                                if (frames[allocated]) {
    7070                                        memsetb(frames[allocated], FRAME_SIZE << order, val);
     
    7979                        for (i = 0; i < allocated; i++) {
    8080                                for (k = 0; k <= ((FRAME_SIZE << order) - 1); k++) {
    81                                         if (((__u8 *) frames[i])[k] != val) {
     81                                        if (((uint8_t *) frames[i])[k] != val) {
    8282                                                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);
    8383                                                failed();
Note: See TracChangeset for help on using the changeset viewer.