Rev 814 | Rev 1062 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 814 | Rev 822 | ||
|---|---|---|---|
| Line 53... | Line 53... | ||
| 53 | { |
53 | { |
| 54 | int status, order, run, allocated, i; |
54 | int status, order, run, allocated, i; |
| 55 | __u8 val = THREAD->tid % THREADS; |
55 | __u8 val = THREAD->tid % THREADS; |
| 56 | index_t k; |
56 | index_t k; |
| 57 | 57 | ||
| 58 | __address * frames = (__address *) malloc(MAX_FRAMES * sizeof(__address)); |
58 | __address * frames = (__address *) malloc(MAX_FRAMES * sizeof(__address), FRAME_ATOMIC); |
| 59 | ASSERT(frames != NULL); |
59 | ASSERT(frames != NULL); |
| 60 | 60 | ||
| 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 (cpu%d): Allocating %d frames blocks ... \n", THREAD->tid, CPU->id, 1 << order); |
63 | printf("Thread #%d (cpu%d): Allocating %d frames blocks ... \n", THREAD->tid, CPU->id, 1 << order); |