diff options
author | kmacy <kmacy@FreeBSD.org> | 2006-12-24 07:47:10 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2006-12-24 07:47:10 +0000 |
commit | 5ed14ae247806833def1b2d43b61d3a768fe2ca2 (patch) | |
tree | 62a5621ba5a2d8d532f4cd89822970670e43f9e9 /sys/sun4v | |
parent | c636cf4e7104540ba66c035229138c1f5f52c374 (diff) | |
download | FreeBSD-src-5ed14ae247806833def1b2d43b61d3a768fe2ca2.zip FreeBSD-src-5ed14ae247806833def1b2d43b61d3a768fe2ca2.tar.gz |
Don't count on the first phys_avail range being greater than zero
Diffstat (limited to 'sys/sun4v')
-rw-r--r-- | sys/sun4v/mdesc/mdesc_init.c | 3 |
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 |