Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 May 2020 14:37:10 +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-12@freebsd.org
Subject:   svn commit: r361211 - stable/12/sys/kern
Message-ID:  <202005181437.04IEbA6J054651@repo.freebsd.org>

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

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

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

Modified: stable/12/sys/kern/kern_mib.c
==============================================================================
--- stable/12/sys/kern/kern_mib.c	Mon May 18 12:36:28 2020	(r361210)
+++ stable/12/sys/kern/kern_mib.c	Mon May 18 14:37:10 2020	(r361211)
@@ -240,8 +240,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?202005181437.04IEbA6J054651>