40,8 → 40,7 |
#define TEST_RUNS 2 |
|
void test(void) { |
__address * frames = (__address *) malloc(MAX_FRAMES*sizeof(__address), |
0); |
__address * frames = (__address *) malloc(MAX_FRAMES*sizeof(__address), 0); |
int results[MAX_ORDER+1]; |
|
int i, order, run; |
59,7 → 58,7 |
frames[allocated] = PA2KA(PFN2ADDR(frame_alloc_rc(order, FRAME_ATOMIC | FRAME_KA, &status))); |
|
if (ALIGN_UP(frames[allocated], FRAME_SIZE << order) != frames[allocated]) { |
panic("Test failed. Block at address %P (size %dK) is not aligned\n", frames[allocated], (FRAME_SIZE << order) >> 10); |
panic("Test failed. Block at address %p (size %dK) is not aligned\n", frames[allocated], (FRAME_SIZE << order) >> 10); |
} |
|
if (status == 0) { |