diff options
author | Louis Stermole <stermole@us.ibm.com> | 2019-01-24 13:36:56 -0500 |
---|---|---|
committer | Christian R. Geddes <crgeddes@us.ibm.com> | 2019-04-15 12:11:18 -0500 |
commit | 2b26420e72477835ffeacb2dab9970266ef07566 (patch) | |
tree | 005fff430a99823e7d1fcd11bc66fb043f160c68 /src/import/generic/memory/lib/utils/assert_noexit.H | |
parent | 0d3c3c752b95d3ddc42d82bb2a66ea9ff4f0c6b1 (diff) | |
download | talos-hostboot-2b26420e72477835ffeacb2dab9970266ef07566.tar.gz talos-hostboot-2b26420e72477835ffeacb2dab9970266ef07566.zip |
Add p9a_mss_freq procedure
Change-Id: I764e1ade2f63cabb7f6e5cf2b39e89811ea432c4
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70989
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com>
Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/75567
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Tested-by: Christian R. Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/import/generic/memory/lib/utils/assert_noexit.H')
-rw-r--r-- | src/import/generic/memory/lib/utils/assert_noexit.H | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/import/generic/memory/lib/utils/assert_noexit.H b/src/import/generic/memory/lib/utils/assert_noexit.H index 5836511de..e8192e784 100644 --- a/src/import/generic/memory/lib/utils/assert_noexit.H +++ b/src/import/generic/memory/lib/utils/assert_noexit.H @@ -22,3 +22,40 @@ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ + +/// +/// @file assert_noexit.H +/// @brief MSS specific assert, but don't exit macro +/// +// *HWP HWP Owner: Stephen Glancy <sglancy@us.ibm.com> +// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 3 +// *HWP Consumed by: HB:FSP + +#ifndef _MSS_ASSERT_NOEXIT_H_ +#define _MSS_ASSERT_NOEXIT_H_ + +#include <fapi2.H> + +/// +/// @brief Create an error log based on __conditional__, +/// the FFDC gathering function is called and the +/// trace is output as a FAPI error trace. An error log +/// is created. fapi2::current_err is set to indicate there was +/// an error so the caller can ripple thru accordingly +/// The caller is responsible for handling the error object. +/// +/// @param[in] __conditional__ the condition to assert +/// @param[in] __ffdc__ the FFDC gathering function +/// @param[in] ... varargs, as input to FAPI_ERR +/// +#define MSS_ASSERT_NOEXIT( __conditional__, __ffdc__, ... ) \ + if (! (__conditional__)) \ + { \ + __ffdc__.execute(fapi2::FAPI2_ERRL_SEV_UNDEFINED, true); \ + FAPI_ERR(__VA_ARGS__); \ + fapi2::current_err = fapi2::FAPI2_RC_FALSE; \ + } + +#endif |