diff options
author | Matt Derksen <mderkse1@us.ibm.com> | 2018-10-29 11:35:35 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-11-02 17:00:51 -0500 |
commit | 1e21ee6d26e5b73e624e2dfd4951d3e820411798 (patch) | |
tree | 1698f19126089849cf4c82acb9faa3e31cf54ecc /src/include/usr/initservice | |
parent | 25102e0add227ca3bd781fe33cb8fba8d65394c3 (diff) | |
download | talos-hostboot-1e21ee6d26e5b73e624e2dfd4951d3e820411798.tar.gz talos-hostboot-1e21ee6d26e5b73e624e2dfd4951d3e820411798.zip |
Allow stopIPL to be called before istepdispatcher is loaded
Hostboot was crashing because a graceful shutdown was requested
before libistepdisp.so loaded.
Change-Id: Id9206961bcbb72094ff359f26db720b92480f5fb
CQ: SW445973
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/68110
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/initservice')
-rw-r--r-- | src/include/usr/initservice/initserviceif.H | 20 | ||||
-rw-r--r-- | src/include/usr/initservice/istepdispatcherif.H | 7 |
2 files changed, 19 insertions, 8 deletions
diff --git a/src/include/usr/initservice/initserviceif.H b/src/include/usr/initservice/initserviceif.H index 87ca8cdb0..d9787407b 100644 --- a/src/include/usr/initservice/initserviceif.H +++ b/src/include/usr/initservice/initserviceif.H @@ -184,7 +184,7 @@ inline bool spBaseServicesEnabled() * * If true then we are running in wrap config * - * @return bool - true if wrap config, else false + * @return bool - true if wrap config, else false */ inline bool isSMPWrapConfig() { @@ -216,6 +216,24 @@ void ShadowIstepData( uint8_t i_step, void GetIstepData( uint8_t & o_step, uint8_t & o_subStep ); +/** + * @brief This function is to be used by external code to tell + * istepdispatcher to stop executing isteps + * + * Note: + * Located here so external code can call before + * istepdispatcher code is loaded + * + * @return Nothing + */ +void stopIpl( void ); + +/** + * @brief Return if istepdispatcher needs to stop executing isteps + * @return true if IPL stopped + */ +bool isIplStopped(); + } diff --git a/src/include/usr/initservice/istepdispatcherif.H b/src/include/usr/initservice/istepdispatcherif.H index b36455a87..c4dee2889 100644 --- a/src/include/usr/initservice/istepdispatcherif.H +++ b/src/include/usr/initservice/istepdispatcherif.H @@ -94,13 +94,6 @@ errlHndl_t sendAttnMonitorChipIdMsg( */ bool isShutdownRequested ( void ); -/** - * @brief This function is to be used by external code to tell - * this instance of istepdispatcher to stop executing steps - * - * @return Nothing - */ -void stopIpl( void ); #ifdef CONFIG_BMC_IPMI /** |