diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2015-02-26 07:37:56 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-02-26 11:31:28 -0600 |
commit | 7e662f6e8d5ed87b59b6aa9100fc0fa0f72b74ab (patch) | |
tree | 59a23e2e4d682ed9272a3d6c4a4c2ede1d82fd0b /src/usr/ipmi | |
parent | de162b1fbbafc0d1f98eb2231b14c4d351b3171e (diff) | |
download | talos-hostboot-7e662f6e8d5ed87b59b6aa9100fc0fa0f72b74ab.tar.gz talos-hostboot-7e662f6e8d5ed87b59b6aa9100fc0fa0f72b74ab.zip |
Incorrect reading returned by Boot Count Sensor
-Fixed mask to ignore bit bit 0 of uint16_t
event_status returned by readSensorData.
Previous mask had an extra charactor which
allowed it to incorrectly pass the high
order bit of the event status back to the caller.
Change-Id: Iaa2962886f78b16352ff091e9aa8082b6ec4b1ca
RTC:124692
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16019
Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com>
Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/ipmi')
-rw-r--r-- | src/usr/ipmi/ipmisensor.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/ipmi/ipmisensor.C b/src/usr/ipmi/ipmisensor.C index 12faa9e6d..3e15e918e 100644 --- a/src/usr/ipmi/ipmisensor.C +++ b/src/usr/ipmi/ipmisensor.C @@ -326,7 +326,7 @@ namespace SENSOR // spec indicates that the high order bit should be // ignored on a read, so lets mask it off now. - o_data.event_status &= 0x7FFFF; + o_data.event_status &= 0x7FFF; } else { |