summaryrefslogtreecommitdiff
path: root/vm/vm_object.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-09-07 20:59:07 +0200
committerRichard Braun <rbraun@sceen.net>2017-09-07 20:59:07 +0200
commit888853dc07f1cdb9701f3612dea7828cc96b84cc (patch)
treeb255b28e240c2ccc9c43c10b8429766d8548fa53 /vm/vm_object.h
parent4febbe1c657c026a33bdb16b51a0f317217b8d5a (diff)
Use accessors when referring to global kernel objects
The kernel_map/kernel_pmap/kernel_task/etc... names were reused as they were in the Mach source code. They've been a (mostly harmless) long-standing violation of the coding rules.
Diffstat (limited to 'vm/vm_object.h')
-rw-r--r--vm/vm_object.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/vm/vm_object.h b/vm/vm_object.h
index 9ffe711e..2f0e8e1a 100644
--- a/vm/vm_object.h
+++ b/vm/vm_object.h
@@ -33,6 +33,14 @@
struct vm_object;
+static inline struct vm_object *
+vm_object_get_kernel_object(void)
+{
+ extern struct vm_object vm_object_kernel_object;
+
+ return &vm_object_kernel_object;
+}
+
/*
* Initialize a VM object.
*/