summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/fapiTestHwpError.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/hwpf/hwp/fapiTestHwpError.C')
-rw-r--r--src/usr/hwpf/hwp/fapiTestHwpError.C36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/usr/hwpf/hwp/fapiTestHwpError.C b/src/usr/hwpf/hwp/fapiTestHwpError.C
new file mode 100644
index 000000000..cb13b582f
--- /dev/null
+++ b/src/usr/hwpf/hwp/fapiTestHwpError.C
@@ -0,0 +1,36 @@
+/**
+ * @file fapiTestHwpError.C
+ *
+ * @brief Implements a simple test Hardware Procedure that returns an error
+ */
+
+/*
+ * Change Log ******************************************************************
+ * Flag Defect/Feature User Date Description
+ * ------ -------------- ---------- ----------- ----------------------------
+ * mjjones 08/08/2011 Created.
+ *
+ */
+
+#include <fapiTestHwpError.H>
+
+extern "C"
+{
+
+//******************************************************************************
+// hwpTestError function
+//******************************************************************************
+fapi::ReturnCode hwpTestError(const fapi::Target & i_target)
+{
+ FAPI_INF("Performing HWP: hwpTestError");
+
+ fapi::ReturnCode l_rc = fapi::RC_TEST_ERROR_A;
+
+ // Add some local FFDC to the ReturnCode
+ uint32_t l_ffdc = 0x12345678;
+ l_rc.setHwpFfdc(reinterpret_cast<void *>(&l_ffdc), sizeof(uint32_t));
+
+ return l_rc;
+}
+
+} // extern "C"
OpenPOWER on IntegriCloud