diff options
author | Stephen Cprek <smcprek@us.ibm.com> | 2017-10-31 13:01:30 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-11-19 15:49:42 -0500 |
commit | 63a026113332464fc3bcc73369ba35bfe8f62b6f (patch) | |
tree | beeea6b0db1276ac82bc834f52919145f24219fe /src/usr/runtime/test | |
parent | f4d54e9c85b36d7d557003ebdfbeb3182636e904 (diff) | |
download | talos-hostboot-63a026113332464fc3bcc73369ba35bfe8f62b6f.tar.gz talos-hostboot-63a026113332464fc3bcc73369ba35bfe8f62b6f.zip |
Create runtime_utils so both IPL and runtime can use common functions
Change-Id: I130f87acdcb841640de7768f1c0abe38e45ce677
RTC: 180063
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49754
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/runtime/test')
-rw-r--r-- | src/usr/runtime/test/testpreverifiedlidmgr.H | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/usr/runtime/test/testpreverifiedlidmgr.H b/src/usr/runtime/test/testpreverifiedlidmgr.H index 4fca35b5f..3863ed27e 100644 --- a/src/usr/runtime/test/testpreverifiedlidmgr.H +++ b/src/usr/runtime/test/testpreverifiedlidmgr.H @@ -32,6 +32,7 @@ #include <usr/vmmconst.h> #include <runtime/populate_hbruntime.H> #include <pnor/pnorif.H> +#include <runtime/common/runtime_utils.H> extern trace_desc_t* g_trac_runtime; @@ -80,14 +81,14 @@ class PreVerifiedLidMgrTest : public CxxTest::TestSuite l_preVerLidMgr.cv_lidsLoaded.clear(); // Handle all Pre verified PNOR sections - for (const auto secId : RUNTIME::preVerifiedPnorSections) + for (const auto & secIdPair : RUNTIME::preVerifiedPnorSections) { - l_errl = RUNTIME::hbResvLoadSecureSection(secId); + l_errl = RUNTIME::hbResvLoadSecureSection(secIdPair.first); if (l_errl) { - TS_FAIL("testLoadFromPnor> Failed to Load Pnor Section %s", - PNOR::SectionIdToString(secId)); errlCommit(l_errl, RUNTIME_COMP_ID); + TS_FAIL("testLoadFromPnor> Failed to Load Pnor Section %s", + PNOR::SectionIdToString(secIdPair.first)); break; } } |