From owner-svn-src-head@FreeBSD.ORG Sat Sep 13 03:33:58 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8EC3A257; Sat, 13 Sep 2014 03:33:58 +0000 (UTC) Received: from mail-ie0-x232.google.com (mail-ie0-x232.google.com [IPv6:2607:f8b0:4001:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3FC3CCD; Sat, 13 Sep 2014 03:33:58 +0000 (UTC) Received: by mail-ie0-f178.google.com with SMTP id tp5so2075790ieb.9 for ; Fri, 12 Sep 2014 20:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=eX+YDwxvRmqDqAIjs1pqXqSuq22kYysKnWBmD6/mk24=; b=fw7M+dfoM+kEFbHOHzATCSvwZUJ5zelXpzdjfT8lTKPSydqM3dumdfgge2xbrGM+ZA SthwcwUGiaDW/Ip9JU+alJcc89uKCoHfck3TQindSyJICDhlpYhiZ+nY+uH9li7+u+AP etwqk1c1mgvEkp3O+oZ5vCUBKno+NQks/Zmi61OLcK9GUhtMHErkQgDlOljw+zcVmHLA Y9BcS+gLLdixWipv9/l1EbKT5MDp1xkyopgrutDOBMDrkEzjuyTCe4OwUGUwlKOHOyMJ vbSBPK5QklqHz0PTt6kIHE5l1HEW8aJmmvxasK/bR5N64j8+coBy4boaNjeMJgtpvVVr cczg== X-Received: by 10.42.41.7 with SMTP id n7mr11741176ice.43.1410579237314; Fri, 12 Sep 2014 20:33:57 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.44.1 with HTTP; Fri, 12 Sep 2014 20:33:37 -0700 (PDT) In-Reply-To: <201409130310.s8D3A2OF031100@svn.freebsd.org> References: <201409130310.s8D3A2OF031100@svn.freebsd.org> From: Ed Maste Date: Fri, 12 Sep 2014 23:33:37 -0400 X-Google-Sender-Auth: I6EPA1mkulCoAZX1Q1YUEyRZ38c Message-ID: Subject: Re: svn commit: r271495 - in head: sbin/sysctl sys/amd64/amd64 To: John Baldwin Content-Type: text/plain; charset=UTF-8 Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2014 03:33:58 -0000 On 12 September 2014 23:10, John Baldwin wrote: > Author: jhb > Date: Sat Sep 13 03:10:02 2014 > New Revision: 271495 > URL: http://svnweb.freebsd.org/changeset/base/271495 > > Log: > Add a sysctl to export the EFI memory map along with a handler in the > sysctl(8) binary to format it. The output (from QEMU in this case) looks like: root@:~ # sysctl machdep.efi_map machdep.efi_map: Type Physical Virtual #Pages Attr ConventionalMemory 000000000000 0x0 000000a0 UC WC WT WB ConventionalMemory 000000100000 0x0 00000720 UC WC WT WB BootServicesData 000000820000 0x0 000007e0 UC WC WT WB ConventionalMemory 000001000000 0x0 00003000 UC WC WT WB BootServicesData 000004000000 0x0 00000020 UC WC WT WB ConventionalMemory 000004020000 0x0 0000088a UC WC WT WB LoaderData 0000048aa000 0x0 00002200 UC WC WT WB LoaderCode 000006aaa000 0x0 0000004a UC WC WT WB LoaderData 000006af4000 0x0 0000004c UC WC WT WB LoaderCode 000006b40000 0x0 0000000f UC WC WT WB ConventionalMemory 000006b4f000 0x0 0000000c UC WC WT WB LoaderData 000006b5b000 0x0 00000005 UC WC WT WB BootServicesData 000006b60000 0x0 0000018c UC WC WT WB BootServicesCode 000006cec000 0x0 00000150 UC WC WT WB RuntimeServicesData 000006e3c000 0x0 00000012 UC WC WT WB RUNTIME BootServicesData 000006e4e000 0x0 00000f00 UC WC WT WB BootServicesCode 000007d4e000 0x0 00000180 UC WC WT WB RuntimeServicesCode 000007ece000 0x0 00000030 UC WC WT WB RUNTIME RuntimeServicesData 000007efe000 0x0 00000024 UC WC WT WB RUNTIME Reserved 000007f22000 0x0 00000004 UC WC WT WB ACPIReclaimMemory 000007f26000 0x0 00000008 UC WC WT WB ACPIMemoryNVS 000007f2e000 0x0 00000004 UC WC WT WB BootServicesData 000007f32000 0x0 0000009e UC WC WT WB RuntimeServicesData 000007fd0000 0x0 00000030 UC WC WT WB RUNTIME