Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 May 2020 14:38:28 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r361212 - stable/11/sys/kern
Message-ID:  <202005181438.04IEcSXK054760@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon May 18 14:38:27 2020
New Revision: 361212
URL: https://svnweb.freebsd.org/changeset/base/361212

Log:
  MFC r361077, r361078, r361079:
  Improve comment for compat32 handling of sysctl hw.pagesizes.

Modified:
  stable/11/sys/kern/kern_mib.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/kern_mib.c
==============================================================================
--- stable/11/sys/kern/kern_mib.c	Mon May 18 14:37:10 2020	(r361211)
+++ stable/11/sys/kern/kern_mib.c	Mon May 18 14:38:27 2020	(r361212)
@@ -235,8 +235,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];



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