Add generic DMAR record support.
diff --git a/cper-parse.c b/cper-parse.c
index 6ad7d2d..c357c7d 100644
--- a/cper-parse.c
+++ b/cper-parse.c
@@ -18,6 +18,7 @@
#include "sections/cper-section-pci-bus.h"
#include "sections/cper-section-pci-dev.h"
#include "sections/cper-section-firmware.h"
+#include "sections/cper-section-dmar-generic.h"
//Private pre-definitions.
json_object* cper_header_to_ir(EFI_COMMON_ERROR_RECORD_HEADER* header);
@@ -323,8 +324,8 @@
result = cper_section_pci_bus_to_ir(section, descriptor);
else if (guid_equal(&descriptor->SectionType, &gEfiPciDevErrorSectionGuid))
result = cper_section_pci_dev_to_ir(section, descriptor);
- // if (guid_equal(&descriptor->SectionType, &gEfiDMArGenericErrorSectionGuid))
- // result = cper_section_dmar_generic_to_ir(section);
+ else if (guid_equal(&descriptor->SectionType, &gEfiDMArGenericErrorSectionGuid))
+ result = cper_section_dmar_generic_to_ir(section, descriptor);
// if (guid_equal(&descriptor->SectionType, &gEfiDirectedIoDMArErrorSectionGuid))
// result = cper_section_intel_io_dma_to_ir(section);
// if (guid_equal(&descriptor->SectionType, &gEfiIommuDMArErrorSectionGuid))