Date: Wed, 9 Sep 2020 21:39:07 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365515 - in head/sys: sys vm Message-ID: <202009092139.089Ld7wK088924@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Wed Sep 9 21:39:06 2020 New Revision: 365515 URL: https://svnweb.freebsd.org/changeset/base/365515 Log: 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 Modified: head/sys/sys/mman.h head/sys/vm/vm_map.c Modified: head/sys/sys/mman.h ============================================================================== --- head/sys/sys/mman.h Wed Sep 9 21:35:44 2020 (r365514) +++ head/sys/sys/mman.h Wed Sep 9 21:39:06 2020 (r365515) @@ -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 Modified: head/sys/vm/vm_map.c ============================================================================== --- head/sys/vm/vm_map.c Wed Sep 9 21:35:44 2020 (r365514) +++ head/sys/vm/vm_map.c Wed Sep 9 21:39:06 2020 (r365515) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009092139.089Ld7wK088924>