On 12 September 2014 23:10, John Baldwin <j...@freebsd.org> 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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to