Subversion Repositories HelenOS

Rev

Rev 745 | Rev 762 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 745 Rev 759
Line 61... Line 61...
61
    for (run = 0; run < THREAD_RUNS; run++) {
61
    for (run = 0; run < THREAD_RUNS; run++) {
62
        for (order = 0; order <= MAX_ORDER; order++) {
62
        for (order = 0; order <= MAX_ORDER; order++) {
63
            printf("Thread #%d: Allocating %d frames blocks ... \n", THREAD->tid, 1 << order);
63
            printf("Thread #%d: Allocating %d frames blocks ... \n", THREAD->tid, 1 << order);
64
            allocated = 0;
64
            allocated = 0;
65
            for (i = 0; i < (MAX_FRAMES >> order); i++) {
65
            for (i = 0; i < (MAX_FRAMES >> order); i++) {
66
                frames[allocated] = frame_alloc(FRAME_NON_BLOCKING | FRAME_KA, order, &status);
66
                frames[allocated] = frame_alloc(FRAME_ATOMIC | FRAME_KA, order, &status);
67
                if (status == 0) {
67
                if (status == 0) {
68
                    memsetb(frames[allocated], FRAME_SIZE << order, val);
68
                    memsetb(frames[allocated], FRAME_SIZE << order, val);
69
                    allocated++;
69
                    allocated++;
70
                } else {
70
                } else {
71
                    break;
71
                    break;