Don't count on the first phys_avail range being greater than zero

This commit is contained in:
Kip Macy 2006-12-24 07:47:10 +00:00
parent 4012ba6ec7
commit 5e296dbf52

View File

@ -132,8 +132,7 @@ mdesc_boot_meta_free(void *buf, size_t size)
static void *
mdesc_buf_alloc(size_t size, size_t align)
{
return contigmalloc(size, M_MDPROP, M_WAITOK, phys_avail[0],
phys_avail[1], align, (1UL<<34));
return pmap_alloc_zeroed_contig_pages(size/PAGE_SIZE, align);
}
static void