svn commit: r361077 - head/sys/kern

Konstantin Belousov kib at FreeBSD.org
Fri May 15 13:50:08 UTC 2020


Author: kib
Date: Fri May 15 13:50:08 2020
New Revision: 361077
URL: https://svnweb.freebsd.org/changeset/base/361077

Log:
  Implement RTLD_DEEPBIND.
  
  PR:	246462
  Tested by:	Martin Birgmeier <d8zNeCFG at aon.at>
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week
  Differential revision:	https://reviews.freebsd.org/D24841

Modified:
  head/sys/kern/kern_mib.c

Modified: head/sys/kern/kern_mib.c
==============================================================================
--- head/sys/kern/kern_mib.c	Fri May 15 13:33:48 2020	(r361076)
+++ head/sys/kern/kern_mib.c	Fri May 15 13:50:08 2020	(r361077)
@@ -238,8 +238,9 @@ sysctl_hw_pagesizes(SYSCTL_HANDLER_ARGS)
 
 	if (req->flags & SCTL_MASK32) {
 		/*
-		 * Recreate the "pagesizes" array with 32-bit elements.  Truncate
-		 * any page size greater than UINT32_MAX to zero.
+		 * Recreate the "pagesizes" array with 32-bit elements.
+		 * Truncate any page size greater than UINT32_MAX to zero,
+		 * which assumes that page sizes are powers of two.
 		 */
 		for (i = 0; i < MAXPAGESIZES; i++)
 			pagesizes32[i] = (uint32_t)pagesizes[i];


More information about the svn-src-head mailing list