summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarao <none@none>2006-06-19 17:36:39 -0700
committerarao <none@none>2006-06-19 17:36:39 -0700
commit9bb6917b385e76d9b21605dc56cd595aa5b8a307 (patch)
tree463e1b8d5d6986aad5a9fed0dbea7c92d0762395
parent68dd05bf63748368ef592f58f0e893c23b45fe31 (diff)
downloadillumos-gate-9bb6917b385e76d9b21605dc56cd595aa5b8a307.tar.gz
6440124 MD framework shouldn't use BOP_ALLOC
-rw-r--r--usr/src/uts/sun4v/os/mach_descrip.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr/src/uts/sun4v/os/mach_descrip.c b/usr/src/uts/sun4v/os/mach_descrip.c
index fe4b9f3724..d8c7135b27 100644
--- a/usr/src/uts/sun4v/os/mach_descrip.c
+++ b/usr/src/uts/sun4v/os/mach_descrip.c
@@ -61,7 +61,6 @@
#include <sys/mdesc_impl.h>
#include <sys/mach_descrip.h>
#include <sys/prom_plat.h>
-#include <sys/bootconf.h>
#include <sys/promif.h>
@@ -75,8 +74,6 @@ static uint64_t mach_descrip_find_md_gen(caddr_t ptr);
static void init_md_params(void);
static void init_domaining_enabled(md_t *mdp, mde_cookie_t *listp);
-extern struct bootops *bootops;
-
/*
* Global ptr of the current generation Machine Description
*/
@@ -134,6 +131,7 @@ uint_t domaining_enabled;
*/
uint_t force_domaining_disabled;
+#define META_ALLOC_ALIGN 8
#define HAS_GEN(x) (x != MDESC_INVAL_GEN)
#ifdef DEBUG
@@ -464,13 +462,13 @@ mach_descrip_buf_alloc(size_t size, size_t align)
static void *
mach_descrip_strt_meta_alloc(size_t size)
{
- return (BOP_ALLOC(bootops, (caddr_t)0, size, PAGESIZE));
+ return (mach_descrip_strt_buf_alloc(size, META_ALLOC_ALIGN));
}
static void
mach_descrip_strt_meta_free(void *buf, size_t size)
{
- BOP_FREE(bootops, buf, size);
+ mach_descrip_strt_buf_free(buf, size);
}
static void *