diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2020-09-09 21:39:06 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2020-09-09 21:39:06 +0000 |
commit | 60cd9c95c5f8312a2355b71e915d34e7846e7141 (patch) | |
tree | c92c20db2aa441736081b8344fcc63088b99d360 | |
parent | fceae0fd3cfda30b8d3c26a44bb2391921777429 (diff) | |
download | src-60cd9c95c5f8312a2355b71e915d34e7846e7141.tar.gz src-60cd9c95c5f8312a2355b71e915d34e7846e7141.zip |
Move MAP_32BIT_MAX_ADDR definition to sys/mman.h.
Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D24652
Notes
Notes:
svn path=/head/; revision=365515
-rw-r--r-- | sys/sys/mman.h | 3 | ||||
-rw-r--r-- | sys/vm/vm_map.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/mman.h b/sys/sys/mman.h index 5af3a463a0f7..19cc824fee48 100644 --- a/sys/sys/mman.h +++ b/sys/sys/mman.h @@ -296,6 +296,9 @@ void shm_drop(struct shmfd *shmfd); int shm_dotruncate(struct shmfd *shmfd, off_t length); extern struct fileops shm_ops; + +#define MAP_32BIT_MAX_ADDR ((vm_offset_t)1 << 31) + #else /* !_KERNEL */ __BEGIN_DECLS diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index e68f7d315959..da8f06dedbd3 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -1913,8 +1913,6 @@ SYSCTL_LONG(_vm, OID_AUTO, aslr_restarts, CTLFLAG_RD, &aslr_restarts, 0, "Number of aslr failures"); -#define MAP_32BIT_MAX_ADDR ((vm_offset_t)1 << 31) - /* * Searches for the specified amount of free space in the given map with the * specified alignment. Performs an address-ordered, first-fit search from |