Add support for platform memory 1 records.
diff --git a/cper-parse.c b/cper-parse.c
index bf34c67..eaef4a1 100644
--- a/cper-parse.c
+++ b/cper-parse.c
@@ -13,6 +13,7 @@
#include "sections/cper-section-generic.h"
#include "sections/cper-section-ia32x64.h"
#include "sections/cper-section-arm.h"
+#include "sections/cper-section-memory.h"
//Private pre-definitions.
json_object* cper_header_to_ir(EFI_COMMON_ERROR_RECORD_HEADER* header);
@@ -306,8 +307,8 @@
// // if (guid_equal(&descriptor->SectionType, &gEfiIpfProcessorErrorSectionGuid))
else if (guid_equal(&descriptor->SectionType, &gEfiArmProcessorErrorSectionGuid))
result = cper_section_arm_to_ir(section, descriptor);
- // if (guid_equal(&descriptor->SectionType, &gEfiPlatformMemoryErrorSectionGuid))
- // result = cper_section_platform_memory_to_ir(section);
+ else if (guid_equal(&descriptor->SectionType, &gEfiPlatformMemoryErrorSectionGuid))
+ result = cper_section_platform_memory_to_ir(section, descriptor);
// if (guid_equal(&descriptor->SectionType, &gEfiPcieErrorSectionGuid))
// result = cper_section_pcie_to_ir(section);
// if (guid_equal(&descriptor->SectionType, &gEfiFirmwareErrorSectionGuid))