diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2011-11-15 16:49:58 -0600 |
---|---|---|
committer | MIKE J. JONES <mjjones@us.ibm.com> | 2011-11-17 16:14:31 -0600 |
commit | 610b9837c7586d6ae39b20492fd9383e2c35e70a (patch) | |
tree | 656917fc1dd3a3824dceb9f3b585f284b4878a7b /src/usr/hwpf/test/hwpftest.H | |
parent | d7f4265a6a3f73e98024e9d9c7f9cc36d4d27b9d (diff) | |
download | talos-hostboot-610b9837c7586d6ae39b20492fd9383e2c35e70a.tar.gz talos-hostboot-610b9837c7586d6ae39b20492fd9383e2c35e70a.zip |
Initfile - Support for multi-dimensional arrays
- Fix compile issue (forgot new file)
- Explicitly define array size
- Code review comment to replace #define with const
- More changes for const police
Change-Id: Ib5964c6bd266f9d74f4810d7884e5d63754eb3fb
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/497
Tested-by: Jenkins Server
Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/test/hwpftest.H')
-rw-r--r-- | src/usr/hwpf/test/hwpftest.H | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/usr/hwpf/test/hwpftest.H b/src/usr/hwpf/test/hwpftest.H index 42fdbccbf..9ee01f465 100644 --- a/src/usr/hwpf/test/hwpftest.H +++ b/src/usr/hwpf/test/hwpftest.H @@ -245,6 +245,15 @@ public: break; } + uint8_t l_uint8array2[2][3][4]; + l_uint8array2[1][2][3] = 0xBE; + l_rc = FAPI_ATTR_SET(ATTR_SCRATCH_UINT8_ARRAY_2, NULL, l_uint8array2); + if (l_rc != fapi::FAPI_RC_SUCCESS) + { + FAPI_IMP("testHwpf5: ATTR_SCRATCH_UINT8_ARRAY_2. Error from SET"); + break; + } + // Get the master processor chip TARGETING::Target* l_pTarget = NULL; TARGETING::targetService().masterProcChipTargetHandle(l_pTarget); |