svn commit: r270828 - in head: sbin/sysctl sys/amd64/amd64 sys/amd64/include/pc sys/i386/i386 sys/i386/include/pc
John Baldwin
jhb at freebsd.org
Fri Aug 29 21:45:07 UTC 2014
On Friday, August 29, 2014 09:25:48 PM John Baldwin wrote:
> Author: jhb
> Date: Fri Aug 29 21:25:47 2014
> New Revision: 270828
> URL: http://svnweb.freebsd.org/changeset/base/270828
>
> Log:
> - Add a new structure type for the ACPI 3.0 SMAP entry that includes the
> optional attributes field.
> - Add a 'machdep.smap' sysctl that exports the SMAP table of the running
> system as an array of the ACPI 3.0 structure. (On older systems, the
> attributes are given a value of zero.) Note that the sysctl only
> exports the SMAP table if it is available via the metadata passed from
> the loader to the kernel. If an SMAP is not available, an empty array
> is returned.
> - Add a format handler for the ACPI 3.0 SMAP structure to the sysctl(8)
> binary to format the SMAP structures in a readable format similar to
> the format found in boot messages.
>
> MFC after: 2 weeks
Sample output:
machdep.smap:
SMAP type=01, xattr=00, base=0000000000000000, len=000000000009d800
SMAP type=02, xattr=00, base=000000000009d800, len=0000000000002800
SMAP type=02, xattr=00, base=00000000000e0000, len=0000000000020000
SMAP type=01, xattr=00, base=0000000000100000, len=00000000ba89f000
SMAP type=02, xattr=00, base=00000000ba99f000, len=0000000000500000
SMAP type=04, xattr=00, base=00000000bae9f000, len=0000000000100000
SMAP type=03, xattr=00, base=00000000baf9f000, len=0000000000060000
...
I also have a sysctl for amd64 to export the UEFI memory map blob as well, but
haven't written the parsing bits for sysctl(8) yet. (And I don't currently
have a system set up with UEFI booting to test it.)
--
John Baldwin
More information about the svn-src-head
mailing list