[merge] merge branch 'master' into smp
Conflicts: kernel/vm/pmm.c platform/zynq/debug.c platform/zynq/platform.c
This commit is contained in:
@@ -289,7 +289,11 @@ uint pmm_alloc_contiguous(uint count, uint8_t alignment_log2, paddr_t *pa, struc
|
||||
uint aligned_offset = (rounded_base - a->base) / PAGE_SIZE;
|
||||
uint start = aligned_offset;
|
||||
LTRACEF("starting search at aligned offset %u\n", start);
|
||||
LTRACEF("arena base 0x%lx size %zu\n", a->base, a->size);
|
||||
|
||||
retry:
|
||||
/* search while we're still within the arena and have a chance of finding a slot
|
||||
(start + count < end of arena) */
|
||||
while ((start < a->size / PAGE_SIZE) &&
|
||||
((start + count) <= a->size / PAGE_SIZE)) {
|
||||
vm_page_t *p = &a->page_array[start];
|
||||
|
||||
Reference in New Issue
Block a user