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:
parent
805a10dbc3
commit
7d40c3e780
@ -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>";
|
||||
|
Loading…
Reference in New Issue
Block a user