aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_pageout.c
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2002-09-21 22:07:17 +0000
committerJake Burkholder <jake@FreeBSD.org>2002-09-21 22:07:17 +0000
commit05ba50f5228f950b85f7c086f5a139b3b556e410 (patch)
tree5a29a2272e4b65acf468c2f877289cf21786b297 /sys/vm/vm_pageout.c
parenta4c8a68c865b593b46129ea44623f31a989d31fe (diff)
downloadsrc-05ba50f5228f950b85f7c086f5a139b3b556e410.tar.gz
src-05ba50f5228f950b85f7c086f5a139b3b556e410.zip
Use the fields in the sysentvec and in the vm map header in place of the
constants VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS, USRSTACK and PS_STRINGS. This is mainly so that they can be variable even for the native abi, based on different machine types. Get stack protections from the sysentvec too. This makes it trivial to map the stack non-executable for certain abis, on machines that support it.
Notes
Notes: svn path=/head/; revision=103767
Diffstat (limited to 'sys/vm/vm_pageout.c')
-rw-r--r--sys/vm/vm_pageout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index e20ddfec003f..87a61cc10ae4 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -596,8 +596,8 @@ vm_pageout_map_deactivate_pages(map, desired)
* table pages.
*/
if (desired == 0 && nothingwired)
- pmap_remove(vm_map_pmap(map),
- VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS);
+ pmap_remove(vm_map_pmap(map), vm_map_min(map),
+ vm_map_max(map));
vm_map_unlock(map);
return;
}