diff options
author | Joachim Fenkes <fenkes@de.ibm.com> | 2016-07-08 14:44:38 +0200 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-07-21 17:17:13 -0400 |
commit | 894c67c08f440a4c716be689e37d9254e91e3acb (patch) | |
tree | 724311db5a85d5745fca216b3abd5389db4faad8 /src/usr/fapi2 | |
parent | b4ac502c2f72ac14a0e129b3579e99dec50bf610 (diff) | |
download | talos-hostboot-894c67c08f440a4c716be689e37d9254e91e3acb.tar.gz talos-hostboot-894c67c08f440a4c716be689e37d9254e91e3acb.zip |
variable_buffer: Support get<OT>() / put<OT>() for incomplete buffer tails
Support getting and putting the last incomplete OT in a buffer that's not
an integer multiple of the OT's size. Values will be treated left-aligned.
Also add an assertion to get<OT>() to make sure we don't read beyond the
end of the buffer.
Change-Id: I527d21209c1694598526bfc815bfd7de38d0fb10
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26048
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Thi N. Tran <thi@us.ibm.com>
Reviewed-by: Brian R. Silver <bsilver@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26054
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/fapi2')
-rw-r--r-- | src/usr/fapi2/test/p9_hwtests.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/fapi2/test/p9_hwtests.C b/src/usr/fapi2/test/p9_hwtests.C index 531bccdef..55108755c 100644 --- a/src/usr/fapi2/test/p9_hwtests.C +++ b/src/usr/fapi2/test/p9_hwtests.C @@ -206,7 +206,7 @@ fapi2::ReturnCode p9_cfamtest_putcfam_pass( fapi2::ReturnCode p9_ringtest_getring_fail( fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target) { - fapi2::variable_buffer l_ringdata; + fapi2::variable_buffer l_ringdata(64); FAPI_INF("Entering p9_ringtest_getring_fail..."); |