diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2013-05-08 13:43:26 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-05-15 09:34:02 -0500 |
commit | b0fc4d4e4bd6d78040b96674a2fe65fc306ea995 (patch) | |
tree | aff044f9569a674b403496be54ad939af2ac76fb /src/usr/fsi | |
parent | c24b25d1a269c4f814b634e49d81a8bb3772f0e7 (diff) | |
download | talos-hostboot-b0fc4d4e4bd6d78040b96674a2fe65fc306ea995.tar.gz talos-hostboot-b0fc4d4e4bd6d78040b96674a2fe65fc306ea995.zip |
BEAM fixes for various components.
Change-Id: I900f33eefeeeaa35d981b93c1af0bec8ab4000c2
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4424
Tested-by: Jenkins Server
Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com>
Reviewed-by: Mark W. Wenning <wenning@us.ibm.com>
Reviewed-by: Brian H. Horton <brianh@linux.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/fsi')
-rw-r--r-- | src/usr/fsi/fsidd.C | 2 | ||||
-rw-r--r-- | src/usr/fsi/fsipres.C | 28 |
2 files changed, 15 insertions, 15 deletions
diff --git a/src/usr/fsi/fsidd.C b/src/usr/fsi/fsidd.C index e3e0a5614..c718f1ab9 100644 --- a/src/usr/fsi/fsidd.C +++ b/src/usr/fsi/fsidd.C @@ -1403,7 +1403,7 @@ errlHndl_t FsiDD::initMasterControl(TARGETING::Target* i_master, bool fsp_master_init = false; TARGETING::Target * sys = NULL; TARGETING::targetService().getTopLevelTarget( sys ); - TARGETING::SpFunctions spfuncs; + TARGETING::SpFunctions spfuncs = TARGETING::SpFunctions(); if( sys && sys->tryGetAttr<TARGETING::ATTR_SP_FUNCTIONS>(spfuncs) && spfuncs.fsiMasterInit ) diff --git a/src/usr/fsi/fsipres.C b/src/usr/fsi/fsipres.C index a4b323c83..d1c9b076c 100644 --- a/src/usr/fsi/fsipres.C +++ b/src/usr/fsi/fsipres.C @@ -101,7 +101,7 @@ errlHndl_t procPresenceDetect(DeviceFW::OperationType i_opType, fsi_present = isSlavePresent(i_target); } - // Next look for valid Module VPD + // Next look for valid Module VPD bool mvpd_present = false; size_t theSize = 0; @@ -185,9 +185,9 @@ errlHndl_t procPresenceDetect(DeviceFW::OperationType i_opType, mvpd_present)); // Callout the processor - l_errl->addHwCallout( i_target, - HWAS::SRCI_PRIORITY_LOW, - HWAS::NO_DECONFIG, + l_errl->addHwCallout( i_target, + HWAS::SRCI_PRIORITY_LOW, + HWAS::NO_DECONFIG, HWAS::GARD_NULL ); // if there is a saved PLID, apply it to this error log @@ -201,8 +201,8 @@ errlHndl_t procPresenceDetect(DeviceFW::OperationType i_opType, FSI_COMP_ID ); } - - bool present = fsi_present & mvpd_present; + + bool present = fsi_present && mvpd_present; memcpy(io_buffer, &present, sizeof(present)); io_buflen = sizeof(present); @@ -273,11 +273,11 @@ errlHndl_t membPresenceDetect(DeviceFW::OperationType i_opType, if( l_errl ) { - + if( fsi_present ) { // Save this plid to use later - l_saved_plid = l_errl->plid(); + l_saved_plid = l_errl->plid(); // commit this log because we expected to have VPD errlCommit( l_errl, @@ -321,7 +321,7 @@ errlHndl_t membPresenceDetect(DeviceFW::OperationType i_opType, cvpd_present = true; } } - + // Finally compare the 2 methods if( fsi_present != cvpd_present ) { @@ -348,9 +348,9 @@ errlHndl_t membPresenceDetect(DeviceFW::OperationType i_opType, cvpd_present)); // Callout the membuf - l_errl->addHwCallout( i_target, - HWAS::SRCI_PRIORITY_LOW, - HWAS::NO_DECONFIG, + l_errl->addHwCallout( i_target, + HWAS::SRCI_PRIORITY_LOW, + HWAS::NO_DECONFIG, HWAS::GARD_NULL ); // if there is a saved PLID, apply it to this error log @@ -363,8 +363,8 @@ errlHndl_t membPresenceDetect(DeviceFW::OperationType i_opType, errlCommit( l_errl, FSI_COMP_ID ); } - - bool present = fsi_present & cvpd_present; + + bool present = fsi_present && cvpd_present; memcpy(io_buffer, &present, sizeof(present)); io_buflen = sizeof(present); |