svn commit: r365515 - in head/sys: sys vm

Konstantin Belousov kib at FreeBSD.org
Wed Sep 9 21:39:07 UTC 2020


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


More information about the svn-src-head mailing list