summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-06-01 23:59:48 +0000
committeralc <alc@FreeBSD.org>2003-06-01 23:59:48 +0000
commit5ba1cfe5478d2b9cfca0374df7ecccb4497bc3a6 (patch)
treeadc1bd245ddb6f6a2b1478738bf371577de3e1c1 /sys/vm/vm_object.h
parent113e55804c1cbad02672c9a2c7592a552a7d002c (diff)
downloadFreeBSD-src-5ba1cfe5478d2b9cfca0374df7ecccb4497bc3a6.zip
FreeBSD-src-5ba1cfe5478d2b9cfca0374df7ecccb4497bc3a6.tar.gz
Change kernel_object and kmem_object to (&kernel_object_store) and
(&kmem_object_store), respectively. This allows the address of these objects to be resolved at link-time rather than run-time.
Diffstat (limited to 'sys/vm/vm_object.h')
-rw-r--r--sys/vm/vm_object.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h
index f6408b0..c3bfe09 100644
--- a/sys/vm/vm_object.h
+++ b/sys/vm/vm_object.h
@@ -167,8 +167,11 @@ TAILQ_HEAD(object_q, vm_object);
extern struct object_q vm_object_list; /* list of allocated objects */
extern struct mtx vm_object_list_mtx; /* lock for object list and count */
-extern vm_object_t kernel_object; /* the single kernel object */
-extern vm_object_t kmem_object;
+extern struct vm_object kernel_object_store;
+extern struct vm_object kmem_object_store;
+
+#define kernel_object (&kernel_object_store)
+#define kmem_object (&kmem_object_store)
#define VM_OBJECT_LOCK(object) mtx_lock(&(object)->mtx)
#define VM_OBJECT_LOCK_ASSERT(object, type) \
OpenPOWER on IntegriCloud