summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/plat/fapiPlatReturnCodeDataRef.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/hwpf/plat/fapiPlatReturnCodeDataRef.C')
-rw-r--r--src/usr/hwpf/plat/fapiPlatReturnCodeDataRef.C28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/usr/hwpf/plat/fapiPlatReturnCodeDataRef.C b/src/usr/hwpf/plat/fapiPlatReturnCodeDataRef.C
new file mode 100644
index 000000000..9906f781f
--- /dev/null
+++ b/src/usr/hwpf/plat/fapiPlatReturnCodeDataRef.C
@@ -0,0 +1,28 @@
+/**
+ * @file platReturnCodeDataRef.C
+ *
+ * @brief Implements the platform part of the ReturnCodeDataRef class.
+ *
+ * Note that platform code must provide the implementation. FAPI has provided
+ * an example for platforms that do not attach ReturnCodeData to a ReturnCode.
+ */
+
+#include <fapiReturnCodeDataRef.H>
+#include <fapiPlatTrace.H>
+#include <errl/errlentry.H>
+
+namespace fapi
+{
+
+//******************************************************************************
+// deleteData function
+//******************************************************************************
+void ReturnCodeDataRef::deleteData()
+{
+ FAPI_DBG("ReturnCodeDataRef::deleteData");
+
+ // FSP platform uses iv_pData to point at a FipS error log.
+ delete (reinterpret_cast<errlHndl_t>(const_cast<void *>(iv_pData)));
+}
+
+}
OpenPOWER on IntegriCloud