Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2014 17:41:01 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 1200321 for review
Message-ID:  <201409161741.s8GHf1dO059568@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help

http://p4web.freebsd.org/@@1200321?ac=10

Change 1200321 by jhb@jhb_jhbbsd on 2014/09/16 17:40:10

	More hacks re: MAP_RENAME and MAP_NORESERVE.

Affected files ...

.. //depot/projects/smpng/sys/sys/param.h#196 edit
.. //depot/projects/smpng/sys/vm/vm_mmap.c#113 edit

Differences ...

==== //depot/projects/smpng/sys/sys/param.h#196 (text+ko) ====

@@ -80,6 +80,7 @@
 #define	P_OSREL_SIGWAIT		700000
 #define	P_OSREL_SIGSEGV		700004
 #define	P_OSREL_MAP_ANON	800104
+#define	P_OSREL_MAP_RENAME	1100033
 
 #define	P_OSREL_MAJOR(x)	((x) / 100000)
 #endif

==== //depot/projects/smpng/sys/vm/vm_mmap.c#113 (text+ko) ====

@@ -220,6 +220,12 @@
 	fp = NULL;
 
 	/*
+	 * Ignore old flags that used to be defined but did not do anything.
+	 */
+	if (curproc < P_OSREL_MAP_RENAME)
+		flags &= ~(MAP_RESERVED0020 | MAP_RESERVED0040);
+	
+	/*
 	 * Enforce the constraints.
 	 * Mapping of length 0 is only allowed for old binaries.
 	 * Anonymous mapping shall specify -1 as filedescriptor and



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409161741.s8GHf1dO059568>