From owner-svn-src-all@FreeBSD.ORG Fri Aug 29 21:45:07 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4EB92680; Fri, 29 Aug 2014 21:45:07 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2502C1CC4; Fri, 29 Aug 2014 21:45:07 +0000 (UTC) Received: from ralph.baldwin.cx (pool-173-70-85-31.nwrknj.fios.verizon.net [173.70.85.31]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 0861AB980; Fri, 29 Aug 2014 17:45:06 -0400 (EDT) From: John Baldwin To: src-committers@freebsd.org Subject: Re: svn commit: r270828 - in head: sbin/sysctl sys/amd64/amd64 sys/amd64/include/pc sys/i386/i386 sys/i386/include/pc Date: Fri, 29 Aug 2014 17:29:11 -0400 Message-ID: <1655468.zo60SDJKHb@ralph.baldwin.cx> User-Agent: KMail/4.10.5 (FreeBSD/10.0-STABLE; KDE/4.10.5; amd64; ; ) In-Reply-To: <201408292125.s7TLPmtQ086899@svn.freebsd.org> References: <201408292125.s7TLPmtQ086899@svn.freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 29 Aug 2014 17:45:06 -0400 (EDT) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2014 21:45:07 -0000 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