summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucket.C
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2016-05-02 17:56:23 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-05-03 09:56:25 -0400
commit54c104ac30dc2b0e35cff81a029e211eb7d2ea8c (patch)
tree29da49757d8dc406db11cc445c3baac158f786ff /src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucket.C
parentb26ecdfc7dce7f3f7f71c0e9acc2942012e3fe6d (diff)
downloadtalos-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.C3
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));
}
OpenPOWER on IntegriCloud