summaryrefslogtreecommitdiffstats
path: root/sys/sun4v/mdesc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sun4v/mdesc')
-rw-r--r--sys/sun4v/mdesc/mdesc_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sun4v/mdesc/mdesc_init.c b/sys/sun4v/mdesc/mdesc_init.c
index a18008e..6de9c2c 100644
--- a/sys/sun4v/mdesc/mdesc_init.c
+++ b/sys/sun4v/mdesc/mdesc_init.c
@@ -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
OpenPOWER on IntegriCloud