diff options
author | crgeddes <crgeddes@us.ibm.com> | 2016-05-02 17:56:23 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-05-03 09:56:25 -0400 |
commit | 54c104ac30dc2b0e35cff81a029e211eb7d2ea8c (patch) | |
tree | 29da49757d8dc406db11cc445c3baac158f786ff /src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucket.C | |
parent | b26ecdfc7dce7f3f7f71c0e9acc2942012e3fe6d (diff) | |
download | talos-hostboot-54c104ac30dc2b0e35cff81a029e211eb7d2ea8c.tar.gz talos-hostboot-54c104ac30dc2b0e35cff81a029e211eb7d2ea8c.zip |
Read 4byte into PR keyword to get Bucket ID for #V data
I forgot to add the offset off of the PR keyword read. The PR keyword
contains the bucket ID number in byte[4] of the keyword data. Previously
I was reading byte[0] which was incorrect.
Change-Id: I358fe02821f1ef4105719aae77f13acb08ee6656
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23975
Tested-by: Jenkins Server
Tested-by: FSP CI Jenkins
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucket.C')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucket.C | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucket.C b/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucket.C index 515381599..dcb719187 100644 --- a/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucket.C +++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucket.C @@ -141,7 +141,8 @@ fapi2::ReturnCode p9_pm_get_poundv_bucket_attr( break; } - memcpy(&l_bucketId, (l_prDataPtr), sizeof(uint8_t)); + //Bucket ID is byte[4] of the PR keyword + memcpy(&l_bucketId, (l_prDataPtr + 4), sizeof(uint8_t)); } |