summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-03-08 00:18:55 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-03-08 00:18:55 +0100
commitdfb4a89ba3bee1c4c000f8e6b54fb92ed25fb2b7 (patch)
tree3dc77287a0fc287f12a8506226263c0c9c311de1 /vm
parent2a603e88f86bee88e013c2451eacf076fbcaed81 (diff)
Move kentry_data_size initial value to header
* vm/vm_map.h (KENTRY_DATA_SIZE): Define macro. * vm/vm_map.c (kentry_data_size): Initialize to KENTRY_DATA_SIZE.
Diffstat (limited to 'vm')
-rw-r--r--vm/vm_map.c2
-rw-r--r--vm/vm_map.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/vm/vm_map.c b/vm/vm_map.c
index de10eec..1f06275 100644
--- a/vm/vm_map.c
+++ b/vm/vm_map.c
@@ -170,7 +170,7 @@ vm_object_t vm_submap_object = &vm_submap_object_store;
*/
vm_offset_t kentry_data;
-vm_size_t kentry_data_size = 32 * PAGE_SIZE;
+vm_size_t kentry_data_size = KENTRY_DATA_SIZE;
static vm_offset_t kentry_pagealloc(vm_size_t size)
{
diff --git a/vm/vm_map.h b/vm/vm_map.h
index f4e9395..17de5db 100644
--- a/vm/vm_map.h
+++ b/vm/vm_map.h
@@ -53,6 +53,8 @@
#include <kern/lock.h>
#include <kern/macro_help.h>
+#define KENTRY_DATA_SIZE (32*PAGE_SIZE)
+
/*
* Types defined:
*