Ignore:
File:
1 edited

Legend:

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

    r8cbf1c3 r6eef3c4  
    5353        uint8_t val = THREAD->tid % THREADS;
    5454       
    55         uintptr_t *frames = (uintptr_t *)
    56             malloc(MAX_FRAMES * sizeof(uintptr_t), FRAME_ATOMIC);
     55        void **frames = (void **)
     56            malloc(MAX_FRAMES * sizeof(void *), FRAME_ATOMIC);
    5757        if (frames == NULL) {
    5858                TPRINTF("Thread #%" PRIu64 " (cpu%u): "
     
    7474                        for (unsigned int i = 0; i < (MAX_FRAMES >> order); i++) {
    7575                                frames[allocated] =
    76                                     PA2KA(frame_alloc(order, FRAME_ATOMIC, 0));
     76                                    frame_alloc(order, FRAME_ATOMIC | FRAME_KA);
    7777                                if (frames[allocated]) {
    78                                         memsetb((void *) frames[allocated], FRAME_SIZE << order, val);
     78                                        memsetb(frames[allocated], FRAME_SIZE << order, val);
    7979                                        allocated++;
    8080                                } else
     
    9393                                        if (((uint8_t *) frames[i])[k] != val) {
    9494                                                TPRINTF("Thread #%" PRIu64 " (cpu%u): "
    95                                                     "Unexpected data (%c) in block %zu offset %zu\n",
     95                                                    "Unexpected data (%c) in block %p offset %zu\n",
    9696                                                    THREAD->tid, CPU->id, ((char *) frames[i])[k],
    9797                                                    frames[i], k);
Note: See TracChangeset for help on using the changeset viewer.