summaryrefslogtreecommitdiffstats
path: root/src/usr/initservice/istepdispatcher
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/initservice/istepdispatcher')
-rw-r--r--src/usr/initservice/istepdispatcher/istepdispatcher.C12
-rw-r--r--src/usr/initservice/istepdispatcher/istepdispatcher.H11
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:
/**
OpenPOWER on IntegriCloud