summaryrefslogtreecommitdiffstats
path: root/src/usr/hwas/hwasPlatCallout.C
diff options
context:
space:
mode:
authorBrian Horton <brianh@linux.ibm.com>2013-07-16 16:43:59 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-07-17 14:45:51 -0500
commit9b0ba036719a1c14a9be384bdf214527dbcbfb71 (patch)
treef209eab434a1e00a8bb1fe7e028fb818e9a2ae95 /src/usr/hwas/hwasPlatCallout.C
parent8347820de97d4e197e716646c5a3a98c8169a41e (diff)
downloadtalos-hostboot-9b0ba036719a1c14a9be384bdf214527dbcbfb71.tar.gz
talos-hostboot-9b0ba036719a1c14a9be384bdf214527dbcbfb71.zip
change i_errl parameter in processCallout() for fsp
fsp code might change the errl (ie, on abort) so this needs to be a reference so that the new log works it's way back up. Change-Id: I08c7760cb77a7577d1c7017362503c08d5f1e829 RTC: 69461 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5430 Tested-by: Jenkins Server Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwas/hwasPlatCallout.C')
-rw-r--r--src/usr/hwas/hwasPlatCallout.C29
1 files changed, 22 insertions, 7 deletions
diff --git a/src/usr/hwas/hwasPlatCallout.C b/src/usr/hwas/hwasPlatCallout.C
index 146b697f6..a11b8081d 100644
--- a/src/usr/hwas/hwasPlatCallout.C
+++ b/src/usr/hwas/hwasPlatCallout.C
@@ -40,10 +40,15 @@ namespace HWAS
// platHandleProcedureCallout
//******************************************************************************
errlHndl_t platHandleProcedureCallout(
- errlHndl_t i_errl,
+ errlHndl_t &io_errl,
epubProcedureID i_procedure,
callOutPriority i_priority)
{
+ // WARNING:
+ // this hostboot code should not change io_errl, unless the caller of the
+ // processCallouts() function also changes, as today it (errlentry.C) calls
+ // from the errlEntry object
+
errlHndl_t errl = NULL;
// hostboot does not handle or do any action for procedure callouts
@@ -57,9 +62,14 @@ errlHndl_t platHandleHWCallout(
TARGETING::Target *i_pTarget,
callOutPriority i_priority,
DeconfigEnum i_deconfigState,
- errlHndl_t i_errl,
+ errlHndl_t &io_errl,
GARD_ErrorType i_gardErrorType)
{
+ // WARNING:
+ // this hostboot code should not change io_errl, unless the caller of the
+ // processCallouts() function also changes, as today it (errlentry.C) calls
+ // from the errlEntry object
+
errlHndl_t errl = NULL;
HWAS_INF("HW callout; pTarget %p gardErrorType %x deconfigState %x",
@@ -80,7 +90,7 @@ errlHndl_t platHandleHWCallout(
default:
{
errl = HWAS::theDeconfigGard().createGardRecord(*i_pTarget,
- i_errl->plid(),
+ io_errl->plid(),
i_gardErrorType);
break;
}
@@ -96,7 +106,7 @@ errlHndl_t platHandleHWCallout(
{
// call HWAS common function
errl = HWAS::theDeconfigGard().deconfigureTarget(*i_pTarget,
- i_errl->plid());
+ io_errl->plid());
break;
}
case (DELAYED_DECONFIG):
@@ -119,8 +129,8 @@ errlHndl_t platHandleHWCallout(
if (!hwasState.functional)
{
HWAS_ERR("master proc deconfigured - Shutdown due to plid 0x%X",
- i_errl->plid());
- INITSERVICE::doShutdown(i_errl->plid());
+ io_errl->plid());
+ INITSERVICE::doShutdown(io_errl->plid());
}
}
} // PLD
@@ -136,8 +146,13 @@ errlHndl_t platHandleBusCallout(
TARGETING::Target *i_pTarget2,
busTypeEnum i_busType,
callOutPriority i_priority,
- errlHndl_t i_errl)
+ errlHndl_t &io_errl)
{
+ // WARNING:
+ // this hostboot code should not change io_errl, unless the caller of the
+ // processCallouts() function also changes, as today it (errlentry.C) calls
+ // from the errlEntry object
+
errlHndl_t errl = NULL;
// hostboot does not handle or do any action for bus callouts
OpenPOWER on IntegriCloud