Rev 824 | Rev 1221 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 824 | Rev 1196 | ||
|---|---|---|---|
| Line 57... | Line 57... | ||
| 57 | allocated = 0; |
57 | allocated = 0; |
| 58 | for (i = 0; i < MAX_FRAMES >> order; i++) { |
58 | for (i = 0; i < MAX_FRAMES >> order; i++) { |
| 59 | frames[allocated] = PA2KA(PFN2ADDR(frame_alloc_rc(order, FRAME_ATOMIC | FRAME_KA, &status))); |
59 | frames[allocated] = PA2KA(PFN2ADDR(frame_alloc_rc(order, FRAME_ATOMIC | FRAME_KA, &status))); |
| 60 | 60 | ||
| 61 | if (ALIGN_UP(frames[allocated], FRAME_SIZE << order) != frames[allocated]) { |
61 | if (ALIGN_UP(frames[allocated], FRAME_SIZE << order) != frames[allocated]) { |
| 62 | panic("Test failed. Block at address %X (size %dK) is not aligned\n", frames[allocated], (FRAME_SIZE << order) >> 10); |
62 | panic("Test failed. Block at address %P (size %dK) is not aligned\n", frames[allocated], (FRAME_SIZE << order) >> 10); |
| 63 | } |
63 | } |
| 64 | 64 | ||
| 65 | if (status == 0) { |
65 | if (status == 0) { |
| 66 | allocated++; |
66 | allocated++; |
| 67 | } else { |
67 | } else { |