summaryrefslogtreecommitdiff
path: root/vm/vm_kmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/vm_kmem.h')
-rw-r--r--vm/vm_kmem.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/vm/vm_kmem.h b/vm/vm_kmem.h
index d845c1d8..e10c2201 100644
--- a/vm/vm_kmem.h
+++ b/vm/vm_kmem.h
@@ -20,6 +20,7 @@
#include <stdint.h>
+#include <kern/init.h>
#include <machine/pmap.h>
#include <machine/types.h>
@@ -45,11 +46,6 @@ extern char _end;
extern struct vm_map *kernel_map;
/*
- * Initialize the vm_kmem module.
- */
-void vm_kmem_setup(void);
-
-/*
* Allocate pure virtual kernel pages.
*
* The caller is reponsible for taking care of the underlying physical memory.
@@ -94,4 +90,10 @@ void * vm_kmem_map_pa(phys_addr_t pa, size_t size,
*/
void vm_kmem_unmap_pa(uintptr_t map_va, size_t map_size);
+/*
+ * This init operation provides :
+ * - kernel virtual memory allocation
+ */
+INIT_OP_DECLARE(vm_kmem_setup);
+
#endif /* _VM_VM_KMEM_H */