Mark Johnston 847ab36bf2 Include the psind in data returned by mincore(2).
Currently we use a single bit to indicate whether the virtual page is
part of a superpage.  To support a forthcoming implementation of
non-transparent 1GB superpages, it is useful to provide more detailed
information about large page sizes.

The change converts MINCORE_SUPER into a mask for MINCORE_PSIND(psind)
values, indicating a mapping of size psind, where psind is an index into
the pagesizes array returned by getpagesizes(3), which in turn comes
from the hw.pagesizes sysctl.  MINCORE_PSIND(1) is equal to the old
value of MINCORE_SUPER.

For now, two bits are used to record the page size, permitting values
of MAXPAGESIZES up to 4.

Reviewed by:	alc, kib
Sponsored by:	Juniper Networks, Inc.
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D26238
2020-09-02 18:16:43 +00:00
..
2019-12-28 02:11:41 +00:00
2020-04-30 22:08:40 +00:00
2020-08-31 21:55:25 +00:00
2018-10-20 22:39:35 +00:00
2020-04-30 22:08:40 +00:00
2017-12-08 17:52:53 +00:00
2019-09-02 01:55:55 +00:00
2020-03-19 06:33:06 +00:00
2020-04-30 22:08:40 +00:00
2020-04-30 22:08:40 +00:00
2020-05-19 11:05:27 +00:00
2020-09-01 16:20:42 +00:00
2020-07-19 23:56:19 +00:00
2019-12-11 17:37:53 +00:00