Rev 1221 | Rev 1760 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1221 | Rev 1658 | ||
|---|---|---|---|
| Line 55... | Line 55... | ||
| 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), FRAME_ATOMIC); |
58 | __address * frames = (__address *) malloc(MAX_FRAMES * sizeof(__address), FRAME_ATOMIC); |
| 59 | ASSERT(frames != NULL); |
59 | ASSERT(frames != NULL); |
| - | 60 | ||
| - | 61 | thread_detach(THREAD); |
|
| 60 | 62 | ||
| 61 | for (run = 0; run < THREAD_RUNS; run++) { |
63 | for (run = 0; run < THREAD_RUNS; run++) { |
| 62 | for (order = 0; order <= MAX_ORDER; order++) { |
64 | for (order = 0; order <= MAX_ORDER; order++) { |
| 63 | printf("Thread #%d (cpu%d): Allocating %d frames blocks ... \n", THREAD->tid, CPU->id, 1 << order); |
65 | printf("Thread #%d (cpu%d): Allocating %d frames blocks ... \n", THREAD->tid, CPU->id, 1 << order); |
| 64 | allocated = 0; |
66 | allocated = 0; |