Teach sysctl(8) about the Persistent memory type.

Add PersistentMemory to the list of sysctl's known memory types
when decoding an EFI memory map.

Submitted by:	D Scott Phillips <d.scott.phillips@intel.com>
MFC after:	1 week
Approved by:	re (rgrimes)
This commit is contained in:
kib 2018-09-07 15:09:56 +00:00
parent 805a10dbc3
commit 7d40c3e780

View File

@ -704,7 +704,8 @@ S_efi_map(size_t l2, void *p)
"ACPIMemoryNVS",
"MemoryMappedIO",
"MemoryMappedIOPortSpace",
"PalCode"
"PalCode",
"PersistentMemory"
};
/*
@ -733,7 +734,7 @@ S_efi_map(size_t l2, void *p)
for (i = 0; i < ndesc; i++,
map = efi_next_descriptor(map, efihdr->descriptor_size)) {
if (map->md_type <= EFI_MD_TYPE_PALCODE)
if (map->md_type <= EFI_MD_TYPE_PERSISTENT)
type = types[map->md_type];
else
type = "<INVALID>";