summaryrefslogtreecommitdiffstats
path: root/src/usr/initservice/istepdispatcher/istepdispatcher.C
diff options
context:
space:
mode:
authorDean Sanner <dsanner@us.ibm.com>2013-10-01 08:36:09 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-10-10 15:56:42 -0500
commit75c505e0c95e8412d007801bfe8a0dd192039df3 (patch)
treee01fc27254357b93469445ff2689d7124100647c /src/usr/initservice/istepdispatcher/istepdispatcher.C
parent4e69f6de00bbc2de7c73ff572963e07fb498329f (diff)
downloadtalos-hostboot-75c505e0c95e8412d007801bfe8a0dd192039df3.tar.gz
talos-hostboot-75c505e0c95e8412d007801bfe8a0dd192039df3.zip
Split "SPless" from mailbox for Cronus control of HB
Change-Id: Ifc44ca2f54bc61163f797b8020ffdd7bf9cc3240 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6424 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/initservice/istepdispatcher/istepdispatcher.C')
-rw-r--r--src/usr/initservice/istepdispatcher/istepdispatcher.C15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/usr/initservice/istepdispatcher/istepdispatcher.C b/src/usr/initservice/istepdispatcher/istepdispatcher.C
index eaac5b902..7197dc8d2 100644
--- a/src/usr/initservice/istepdispatcher/istepdispatcher.C
+++ b/src/usr/initservice/istepdispatcher/istepdispatcher.C
@@ -177,9 +177,10 @@ void IStepDispatcher::init ( errlHndl_t &io_rtaskRetErrl )
do
{
- if( !spLess() )
+ if( MBOX::mailbox_enabled() )
{
- // register message Q with FSP Mailbox - only if Fsp attached.
+ // register message Q with FSP Mailbox - only if mailbox
+ // enabled
err = MBOX::msgq_register( MBOX::HB_ISTEP_MSGQ,
iv_msgQ );
@@ -188,6 +189,12 @@ void IStepDispatcher::init ( errlHndl_t &io_rtaskRetErrl )
break;
}
}
+ else
+ {
+ assert(spLess()); // If the mailbox is disabled, we better be in
+ // spLess mode. Otherwise, attributes are set
+ // incorrectly.
+ }
// Spawn off the Worker thread
tid_t l_workerTid = task_create( startIStepWorkerThread,
@@ -233,7 +240,7 @@ void IStepDispatcher::init ( errlHndl_t &io_rtaskRetErrl )
TRACFCOMP( g_trac_initsvc,
"IStep run all" );
- if(!spLess())
+ if(MBOX::mailbox_enabled())
{
// Read the attribute indicating if the FSP has overrides
// and get the overrides if it does
@@ -915,7 +922,7 @@ void IStepDispatcher::handleBreakpoint ( uint32_t i_info )
myMsg->data[1] = 0x0;
myMsg->extra_data = NULL;
- if( !spLess() )
+ if( MBOX::mailbox_enabled() )
{
// FSP Attached
// Wait for Fsp to respond.
OpenPOWER on IntegriCloud