summaryrefslogtreecommitdiffstats
path: root/src/include/usr/fapi2
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2016-06-17 15:04:00 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-06-24 15:15:54 -0400
commit974f8cce990567bad43e1874403dd18632fa415b (patch)
treeea0026b71f679dd4e2b1d6297951657bb0edb964 /src/include/usr/fapi2
parenta2bdb2e36de8aff1c579f90ea4d21fa56507632b (diff)
downloadtalos-hostboot-974f8cce990567bad43e1874403dd18632fa415b.tar.gz
talos-hostboot-974f8cce990567bad43e1874403dd18632fa415b.zip
Update FAPI_INVOKE_HWP to reset current_err before falling func
Previously current_err was not getting reset to SUCCESS. This causes issues when we have expect errors occur (such as test cases) or have non-fatal errors occur. This commit makes it so that before any function is called with the FAPI_INVOKE macro, current_err is set back to SUCCESS so we can be sure are getting valid errors. Change-Id: I51f137d5b0c30be56e911d5a0e2228db3d609949 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26010 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/fapi2')
-rw-r--r--src/include/usr/fapi2/plat_hwp_invoker.H1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/usr/fapi2/plat_hwp_invoker.H b/src/include/usr/fapi2/plat_hwp_invoker.H
index 25ef6ccfe..200493a51 100644
--- a/src/include/usr/fapi2/plat_hwp_invoker.H
+++ b/src/include/usr/fapi2/plat_hwp_invoker.H
@@ -60,6 +60,7 @@
#define FAPI_INVOKE_HWP(ERRHNDL, FUNC, _args_...) \
{\
fapi2::ReturnCode l_rc; \
+ fapi2::current_err = fapi2::FAPI2_RC_SUCCESS;\
FAPI_EXEC_HWP(l_rc, FUNC, ##_args_); \
ERRHNDL = fapi2::rcToErrl(l_rc);\
if( ERRHNDL ) {\
OpenPOWER on IntegriCloud