summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-10 03:39:05 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-10 03:39:05 +0100
commit92bdcff573a9734a926b4eba027c36134d5c7607 (patch)
treebb8649f0dd2758bf14287bb894abb390fced6460 /vm
parent79f9f058820be50e510f499b5b4d08144ab71bc2 (diff)
Revert "Make vm_map really ignore `address' when `anywhere' is true"
This reverts commit 5ae510e35c54009626999a88f0f1cb34d6dfc94f.
Diffstat (limited to 'vm')
-rw-r--r--vm/vm_user.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/vm/vm_user.c b/vm/vm_user.c
index 1d8f37b..f7c87cc 100644
--- a/vm/vm_user.c
+++ b/vm/vm_user.c
@@ -336,10 +336,7 @@ kern_return_t vm_map(
if (size == 0)
return KERN_INVALID_ARGUMENT;
- if (anywhere)
- *address = vm_map_min(target_map);
- else
- *address = trunc_page(*address);
+ *address = trunc_page(*address);
size = round_page(size);
if (!IP_VALID(memory_object)) {