summaryrefslogtreecommitdiffstats
path: root/src/import/hwpf/fapi2/include/utils.H
diff options
context:
space:
mode:
authorRichard J. Knight <rjknight@us.ibm.com>2015-12-07 16:02:33 -0600
committerStephen Cprek <smcprek@us.ibm.com>2016-02-19 15:32:01 -0600
commit0542be2bd93801e3a9e6f4e7c56eecb32f007a05 (patch)
tree1e63aa83fcd4b4385e5991f60f33d6bc857ee0a4 /src/import/hwpf/fapi2/include/utils.H
parent505893d625748df21c2841b4ad588016ca510b79 (diff)
downloadtalos-hostboot-0542be2bd93801e3a9e6f4e7c56eecb32f007a05.tar.gz
talos-hostboot-0542be2bd93801e3a9e6f4e7c56eecb32f007a05.zip
Need an option to allow HWP to return an error log to platform code.
-Update ReturnCode object to include plat err pointer. -Modify FFDC code to capture error log pointer -Add FAPI_ASSERT_NO_EXIT macro Change-Id: I9d69535416be9d09434766cc15f7db447a72aa60 RTC:13220 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22572 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Brian Silver <bsilver@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23334
Diffstat (limited to 'src/import/hwpf/fapi2/include/utils.H')
-rw-r--r--src/import/hwpf/fapi2/include/utils.H21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/import/hwpf/fapi2/include/utils.H b/src/import/hwpf/fapi2/include/utils.H
index ee15b50db..95a4e5f1f 100644
--- a/src/import/hwpf/fapi2/include/utils.H
+++ b/src/import/hwpf/fapi2/include/utils.H
@@ -7,7 +7,7 @@
/* */
/* EKB Project */
/* */
-/* COPYRIGHT 2011,2015 */
+/* COPYRIGHT 2011,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -50,6 +50,25 @@ void logError(
bool i_unitTestError = false );
///
+/// @brief Create a platform error log
+///
+/// This function will create a platform error log from the passed in
+/// return code value and will populate the iv_platDataPtr of the return code
+/// with a pointer to the newly created log.
+///
+/// @param[in,out] io_rc - Reference to ReturnCode
+///
+/// @param[in] i_sev Fapi error log severity defaulted to unrecoverable
+//
+//
+/// @note Implemented by platform code
+///
+void createPlatLog(
+ fapi2::ReturnCode& io_rc,
+ fapi2::errlSeverity_t i_sev = fapi2::FAPI2_ERRL_SEV_UNRECOVERABLE
+);
+
+///
/// @brief Delay this thread. Hostboot will use the nanoseconds parameter
/// and make a syscall to nanosleep. While in the syscall, the hostboot
/// kernel will continue to consume CPU cycles as it looks for a runnable
OpenPOWER on IntegriCloud