summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf
diff options
context:
space:
mode:
authorCaleb Palmer <cnpalmer@us.ibm.com>2019-09-04 09:18:34 -0500
committerZane C Shelley <zshelle@us.ibm.com>2019-09-09 09:40:49 -0500
commitf7aeced7802836987f6f710f6f235693ea7249a2 (patch)
treeddc1753220957cf00dcd4c3ffc6e1041b54f4013 /src/usr/diag/prdf
parent78c527c5e870b6c806830723f84912a8ad6b5edf (diff)
downloadtalos-hostboot-f7aeced7802836987f6f710f6f235693ea7249a2.tar.gz
talos-hostboot-f7aeced7802836987f6f710f6f235693ea7249a2.zip
PRD: NVDIMM Fix negative temperature check
Change-Id: I389c2e12fe3147add5aa1b3620fb67755f7ef0e3 CQ: SW474740 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/83242 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Benjamen G Tyner <ben.tyner@ibm.com> Reviewed-by: Paul Greenwood <paul.greenwood@ibm.com> Reviewed-by: Zane C Shelley <zshelle@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/83243 Tested-by: FSP CI Jenkins <fsp-CI-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>
Diffstat (limited to 'src/usr/diag/prdf')
-rw-r--r--src/usr/diag/prdf/plat/mem/prdfP9Mca.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/diag/prdf/plat/mem/prdfP9Mca.C b/src/usr/diag/prdf/plat/mem/prdfP9Mca.C
index fae1b7228..ffeefc315 100644
--- a/src/usr/diag/prdf/plat/mem/prdfP9Mca.C
+++ b/src/usr/diag/prdf/plat/mem/prdfP9Mca.C
@@ -804,7 +804,7 @@ uint32_t __analyzeErrorThrStatusReg( STEP_CODE_DATA_STRUCT & io_sc,
// Check to see if the ES_TEMP is negative (bit 12)
bool esTempNeg = false;
- if ( esTemp | 0x1000 ) esTempNeg = true;
+ if ( esTemp & 0x1000 ) esTempNeg = true;
// If ES_TEMP is equal or above ES_TEMP_ERROR_HIGH_THRESHOLD
// Just in case ES_TEMP has moved before we read it out, we'll add
@@ -1021,7 +1021,7 @@ uint32_t __analyzeWarningThrStatusReg(STEP_CODE_DATA_STRUCT & io_sc,
// Check to see if the ES_TEMP is negative (bit 12)
bool esTempNeg = false;
- if ( esTemp | 0x1000 ) esTempNeg = true;
+ if ( esTemp & 0x1000 ) esTempNeg = true;
// If ES_TEMP is equal or above ES_TEMP_WARNING_HIGH_THRESHOLD
// Just in case ES_TEMP has moved before we read it out, we'll add
OpenPOWER on IntegriCloud