svn commit: r361212 - stable/11/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Mon May 18 14:38:28 UTC 2020
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];
More information about the svn-src-all
mailing list