diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/usr/hwpf/plat/fapiPlatAttributeService.C | 6 |
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; + } } } |

