Commit 569f0180 authored by Charles Jacobsen's avatar Charles Jacobsen Committed by Vikram Narayanan

test-v2: More allocator bugs - translate page order to block order.

LCD boots most of the way, getting assertion failures in THC code.
parent 94bbac3f
......@@ -386,10 +386,12 @@ void init_page_blocks(struct lcd_page_allocator *pa)
for (i = 0; i < pa_nr_page_blocks(pa); i++)
INIT_LIST_HEAD(&cursor[i].buddy_list);
for (i = 0; i < pa_nr_page_blocks(pa); i += (1UL << (pa->max_order))) {
cursor[i].block_order = pa->max_order;
for (i = 0;
i < pa_nr_page_blocks(pa);
i += (1UL << (pa->max_order - pa->min_order))) {
cursor[i].block_order = pa->max_order - pa->min_order;
list_add_tail(&cursor[i].buddy_list,
&pa->free_lists[pa->max_order]);
&pa->free_lists[pa->max_order - pa->min_order]);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment