Add ECC metadata

This change adds a ECC service that handles memory error and
to add new IPMI SEL records to the journal with the correct
metadata.

Tested:

CE Error:
1. Triger memory ce error:
devmem 0xf0824178 32 0x7501

2. ipmi sel list should log ce error:
1 |  Pre-Init  |0000015435| Memory #0xf0 | Correctable ECC | Asserted

UE Error:
1. Triger memory ue error:
devmem 0xf0824178 32 0x301

2.ipmi sel list should log ue error:
2 |  Pre-Init  |0000001677| Memory #0xf0 | Uncorrectable ECC | Asserted

Change-Id: Ia63a62c2e80697639fef4c4e114fee52f65c71af
Signed-off-by: Will Liang <will.liang@quantatw.com>
diff --git a/ecc_main.cpp b/ecc_main.cpp
new file mode 100644
index 0000000..a1da584
--- /dev/null
+++ b/ecc_main.cpp
@@ -0,0 +1,21 @@
+#include "config.h"
+
+#include "ecc_manager.hpp"
+
+#include <iostream>
+#include <sdbusplus/bus.hpp>
+#include <sdbusplus/sdbus.hpp>
+#include <sdbusplus/server/manager.hpp>
+
+int main(void)
+{
+
+    /** @brief Dbus constructs */
+    auto bus = sdbusplus::bus::new_default();
+
+    phosphor::memory::ECC obj(bus, OBJPATH);
+
+    obj.run();
+
+    return 0;
+}