summaryrefslogtreecommitdiffstats
path: root/sbe
diff options
context:
space:
mode:
authorRaja Das <rajadas2@in.ibm.com>2016-04-12 05:56:58 -0500
committerAMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>2016-04-19 05:19:35 -0400
commit1b064604dccf7c997e10b627d7bf2a7accb0592d (patch)
tree14380a3560b4b29c729f0d60f268d2707cc7f93f /sbe
parent9b1a5812274c74b9b4e92064ba6337a72b6d93e1 (diff)
downloadtalos-sbe-1b064604dccf7c997e10b627d7bf2a7accb0592d.tar.gz
talos-sbe-1b064604dccf7c997e10b627d7bf2a7accb0592d.zip
Fix Bug related to plck loop
Change-Id: I044e5fc4b9231e3fdc424e02f581f85a260ddd07 CQ:SW349419 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23154 Tested-by: Jenkins Server Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Santosh S. Puranik <santosh.puranik@in.ibm.com> Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'sbe')
-rw-r--r--sbe/sbefw/sbecmdprocessor.C39
1 files changed, 19 insertions, 20 deletions
diff --git a/sbe/sbefw/sbecmdprocessor.C b/sbe/sbefw/sbecmdprocessor.C
index afeeebdb..f9be47b9 100644
--- a/sbe/sbefw/sbecmdprocessor.C
+++ b/sbe/sbefw/sbecmdprocessor.C
@@ -208,31 +208,30 @@ void sbeSyncCommandProcessor_routine(void *i_pArg)
#define SBE_FUNC " sbeSyncCommandProcessor_routine "
SBE_ENTER(SBE_FUNC);
+ // Check the destination bit at the start
+ if(true == SbeRegAccess::theSbeRegAccess().isDestBitRuntime())
+ {
+ SBE_DEBUG(SBE_FUNC"Destination bit tells us to go to runtime");
+ (void)SbeRegAccess::theSbeRegAccess().
+ updateSbeState(SBE_STATE_RUNTIME);
+ }
+ else if(true == SbeRegAccess::theSbeRegAccess().isIstepMode())
+ {
+ SBE_DEBUG(SBE_FUNC"Continuous IPL mode not set, will wait for "
+ "commands...");
+ (void)SbeRegAccess::theSbeRegAccess().
+ updateSbeState(SBE_STATE_ISTEP);
+ }
+ else
+ {
+ sbeDoContinuousIpl();
+ }
+
do
{
uint32_t l_rc = SBE_SEC_OPERATION_SUCCESSFUL;
uint16_t l_primStatus = SBE_PRI_OPERATION_SUCCESSFUL;
- // Check the destination bit
- if(true == SbeRegAccess::theSbeRegAccess().isDestBitRuntime())
- {
- SBE_DEBUG(SBE_FUNC"Destination bit tells us to go to runtime");
- (void)SbeRegAccess::theSbeRegAccess().
- updateSbeState(SBE_STATE_RUNTIME);
- }
-
- else if(true == SbeRegAccess::theSbeRegAccess().isIstepMode())
- {
- SBE_DEBUG(SBE_FUNC"Continuous IPL mode not set, will wait for "
- "commands...");
- (void)SbeRegAccess::theSbeRegAccess().
- updateSbeState(SBE_STATE_ISTEP);
- }
- else
- {
- sbeDoContinuousIpl();
- }
-
// Wait for new command processing
int l_rcPk = pk_semaphore_pend (
&g_sbeSemCmdProcess, PK_WAIT_FOREVER);
OpenPOWER on IntegriCloud