diff options
author | Bill Schwartz <whs@us.ibm.com> | 2013-10-17 08:03:36 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-11-08 15:19:40 -0600 |
commit | 06fdca58e18f8a6dae366a12e03b97c7b28d5742 (patch) | |
tree | fdb22b6969b05b85cb7b097455ed4101374a5ac1 /src/usr/initservice | |
parent | fd4fe707fca2059867b4573f3f6f1bd3f708b542 (diff) | |
download | blackbird-hostboot-06fdca58e18f8a6dae366a12e03b97c7b28d5742.tar.gz blackbird-hostboot-06fdca58e18f8a6dae366a12e03b97c7b28d5742.zip |
istepreasoncodes.H is a merge bottleneck
Eliminate congestion on istepreasoncodes.H by removing error tags and
moduleId/Reason codes from iSteps calling IStepError.addErrorDetails.
ISteps pass only the failing error log. IStepError.addErrorDetails will get
the iStep and substep from the istep dispatcher and add to user data.
Change-Id: If8f8796bfeafb80b5dbcea21629137260b07bc72
RTC: 59658
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/6719
Tested-by: Jenkins Server
Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Reviewed-by: Brian H. Horton <brianh@linux.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/initservice')
-rw-r--r-- | src/usr/initservice/istepdispatcher/istepdispatcher.C | 12 | ||||
-rw-r--r-- | src/usr/initservice/istepdispatcher/istepdispatcher.H | 11 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/usr/initservice/istepdispatcher/istepdispatcher.C b/src/usr/initservice/istepdispatcher/istepdispatcher.C index 005b3911e..57ce650b8 100644 --- a/src/usr/initservice/istepdispatcher/istepdispatcher.C +++ b/src/usr/initservice/istepdispatcher/istepdispatcher.C @@ -1273,4 +1273,16 @@ void iStepBreakPoint(uint32_t i_info) IStepDispatcher::getTheInstance().iStepBreakPoint( i_info ); } +// ---------------------------------------------------------------------------- +// IStepDispatcher::getIstepInfo() +// ---------------------------------------------------------------------------- +void IStepDispatcher::getIstepInfo ( uint8_t & o_iStep, + uint8_t & o_subStep ) +{ + mutex_lock( &iv_mutex ); + o_iStep = iv_curIStep; + o_subStep = iv_curSubStep; + mutex_unlock( &iv_mutex ); +} + } // namespace diff --git a/src/usr/initservice/istepdispatcher/istepdispatcher.H b/src/usr/initservice/istepdispatcher/istepdispatcher.H index 077a8d869..b83e4300c 100644 --- a/src/usr/initservice/istepdispatcher/istepdispatcher.H +++ b/src/usr/initservice/istepdispatcher/istepdispatcher.H @@ -152,6 +152,17 @@ public: */ void runProgressThread(); + /** + * @brief This function will return the current istep and substep. + * + * @param[out] o_iStep - The current Istep value. + * + * @param[out] o_subStep - The current SubStep value. + * + */ + void getIstepInfo ( uint8_t & o_iStep, + uint8_t & o_subStep ); + protected: /** |