Subversion Repositories HelenOS-historic

Rev

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

Rev 759 Rev 762
Line 53... Line 53...
53
    for (run = 0; run < TEST_RUNS; run++) {
53
    for (run = 0; run < TEST_RUNS; run++) {
54
        for (order = 0; order <= MAX_ORDER; order++) {
54
        for (order = 0; order <= MAX_ORDER; order++) {
55
            printf("Allocating %d frames blocks ... ", 1 << order);
55
            printf("Allocating %d frames blocks ... ", 1 << order);
56
            allocated = 0;
56
            allocated = 0;
57
            for (i = 0; i < MAX_FRAMES >> order; i++) {
57
            for (i = 0; i < MAX_FRAMES >> order; i++) {
58
                frames[allocated] = frame_alloc(FRAME_ATOMIC | FRAME_KA, order, &status);
58
                frames[allocated] = frame_alloc(FRAME_ATOMIC | FRAME_KA, order, &status, NULL);
59
               
59
               
60
                if (ALIGN_UP(frames[allocated], FRAME_SIZE << order) != frames[allocated]) {
60
                if (ALIGN_UP(frames[allocated], FRAME_SIZE << order) != frames[allocated]) {
61
                    panic("Test failed. Block at address %X (size %dK) is not aligned\n", frames[allocated], (FRAME_SIZE << order) >> 10);
61
                    panic("Test failed. Block at address %X (size %dK) is not aligned\n", frames[allocated], (FRAME_SIZE << order) >> 10);
62
                }
62
                }
63
               
63