summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/plat/fapiPlatAttributeService.C
diff options
context:
space:
mode:
authorBill Schwartz <whs@us.ibm.com>2015-12-07 09:48:35 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-12-09 18:14:45 -0600
commitb825bde20eb7ddb73ce6569a06506a550fcb9bdc (patch)
treea88e352a706492c50d5e6286af5ec82c7d38db26 /src/usr/hwpf/plat/fapiPlatAttributeService.C
parent74e0b5af5c3dea3e748c9383e4b24c2f01a7b1bb (diff)
downloadblackbird-hostboot-b825bde20eb7ddb73ce6569a06506a550fcb9bdc.tar.gz
blackbird-hostboot-b825bde20eb7ddb73ce6569a06506a550fcb9bdc.zip
Fix ATTR_SPD_ADDR_MAP_REG_TO_DRAM size mismatch
Shift 1 byte spd values to appropriate uint32_t position Change-Id: Ifee71a47c31e641ee46b434686c94d62add3c177 RTC: 137707 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22501 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/plat/fapiPlatAttributeService.C')
-rw-r--r--src/usr/hwpf/plat/fapiPlatAttributeService.C6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usr/hwpf/plat/fapiPlatAttributeService.C b/src/usr/hwpf/plat/fapiPlatAttributeService.C
index 25953f24b..790428008 100644
--- a/src/usr/hwpf/plat/fapiPlatAttributeService.C
+++ b/src/usr/hwpf/plat/fapiPlatAttributeService.C
@@ -303,6 +303,12 @@ fapi::ReturnCode fapiPlatGetSpdAttr(const fapi::Target * i_pFapiTarget,
// Shift the data to be right aligned
*(static_cast<uint32_t *>(o_data)) >>= 16;
}
+ else if ((i_len == sizeof(uint32_t)) && (l_len == sizeof(uint8_t)))
+ {
+ // This is a uint8_t attribute written to a uint32_t type.
+ // Shift the data to the lower byte
+ *(static_cast<uint32_t *>(o_data)) >>= 24;
+ }
}
}
OpenPOWER on IntegriCloud