summaryrefslogtreecommitdiff
path: root/vm/vm_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/vm_map.h')
-rw-r--r--vm/vm_map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm/vm_map.h b/vm/vm_map.h
index f739697a..fdd24f5a 100644
--- a/vm/vm_map.h
+++ b/vm/vm_map.h
@@ -23,6 +23,7 @@
#include <kern/list.h>
#include <kern/rbtree.h>
+#include <kern/spinlock.h>
#include <kern/stdint.h>
#include <machine/pmap.h>
@@ -91,6 +92,7 @@ struct vm_map_entry {
* Memory map.
*/
struct vm_map {
+ struct spinlock lock;
struct list entry_list;
struct rbtree entry_tree;
unsigned int nr_entries;