diff options
author | Zane Shelley <zshelle@us.ibm.com> | 2013-07-02 15:50:48 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-08-08 10:15:32 -0500 |
commit | 1ba4435e7dba11181fc98876ce558185c3f44499 (patch) | |
tree | 5580b21df73762356652dff5a6f26fd6cdc5d57d /src/usr/diag/prdf/plat/pegasus/prdfPlatCalloutUtil.C | |
parent | 011da4162142a73c222e87e2bb1037866f9c1344 (diff) | |
download | talos-hostboot-1ba4435e7dba11181fc98876ce558185c3f44499.tar.gz talos-hostboot-1ba4435e7dba11181fc98876ce558185c3f44499.zip |
PRD: add better callouts/FFDC for IPL analysis
Change-Id: Iad9349c3a0714915a4d3c5f29b6e49da9d823135
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5419
Tested-by: Jenkins Server
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: Christopher T. Phan <cphan@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5725
Diffstat (limited to 'src/usr/diag/prdf/plat/pegasus/prdfPlatCalloutUtil.C')
-rw-r--r-- | src/usr/diag/prdf/plat/pegasus/prdfPlatCalloutUtil.C | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/src/usr/diag/prdf/plat/pegasus/prdfPlatCalloutUtil.C b/src/usr/diag/prdf/plat/pegasus/prdfPlatCalloutUtil.C new file mode 100644 index 000000000..a7efe46cb --- /dev/null +++ b/src/usr/diag/prdf/plat/pegasus/prdfPlatCalloutUtil.C @@ -0,0 +1,67 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/usr/diag/prdf/plat/pegasus/prdfPlatCalloutUtil.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2013 */ +/* */ +/* p1 */ +/* */ +/* Object Code Only (OCO) source materials */ +/* Licensed Internal Code Source Materials */ +/* IBM HostBoot Licensed Internal Code */ +/* */ +/* The source code for this program is not published or otherwise */ +/* divested of its trade secrets, irrespective of what has been */ +/* deposited with the U.S. Copyright Office. */ +/* */ +/* Origin: 30 */ +/* */ +/* IBM_PROLOG_END_TAG */ + +/** @file prdfPlatCalloutUtil.C */ + +#include <prdfPlatCalloutUtil.H> + +// Framework includes +#include <prdfErrlUtil.H> +#include <prdfPfa5Data.h> +#include <prdfPlatServices.H> + +// Pegasus includes +#include <prdfMemoryMru.H> + +using namespace TARGETING; + +namespace PRDF +{ + +using namespace PlatServices; + +namespace CalloutUtil +{ + +void calloutMemoryMru( errlHndl_t io_errl, const MemoryMru & i_memmru, + const HWAS::callOutPriority i_priority, + const HWAS::DeconfigEnum i_deconfigState, + const HWAS::GARD_ErrorType i_gardType ) +{ + // Add all parts to the error log. + TargetHandleList partList = i_memmru.getCalloutList(); + for ( TargetHandleList::iterator it = partList.begin(); + it != partList.end(); it++ ) + { + io_errl->addHwCallout( *it, i_priority, i_deconfigState, i_gardType ); + } + + // Add the MemoryMru to the capture data. + uint32_t tmpMru = i_memmru.toUint32(); + PRDF_ADD_FFDC( io_errl, &tmpMru, sizeof(tmpMru), ErrlVer1, ErrlMruData_1 ); +} + +} // end namespace CalloutUtil + +} // end namespace PRDF + |