diff options
author | Stephen Cprek <smcprek@us.ibm.com> | 2014-10-08 16:40:36 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-10-31 17:20:50 -0500 |
commit | c57773ccd7a7368342565d109ab10138cee7626f (patch) | |
tree | 8ac91aa53bac13e77ec8ce42399b9fd0f3dee9df /src/usr/hwpf | |
parent | c864e50f89bfeb102a2edca45825e6e02cf6ba56 (diff) | |
download | blackbird-hostboot-c57773ccd7a7368342565d109ab10138cee7626f.tar.gz blackbird-hostboot-c57773ccd7a7368342565d109ab10138cee7626f.zip |
Add OCC image pnor support
The OCC pnor section only exists in openPOWER
Change-Id: I5d5b7d03db681aa2e9b129cc63b768aaf5a15064
RTC: 116297
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13893
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf')
-rw-r--r-- | src/usr/hwpf/hwp/occ/occ.C | 6 | ||||
-rw-r--r-- | src/usr/hwpf/hwp/occ/runtime/rt_occ.C | 4 | ||||
-rw-r--r-- | src/usr/hwpf/test/runtime/rt_occtest.H | 9 |
3 files changed, 11 insertions, 8 deletions
diff --git a/src/usr/hwpf/hwp/occ/occ.C b/src/usr/hwpf/hwp/occ/occ.C index ea9d97076..e28a51415 100644 --- a/src/usr/hwpf/hwp/occ/occ.C +++ b/src/usr/hwpf/hwp/occ/occ.C @@ -87,14 +87,14 @@ namespace HBOCC errlHndl_t l_errl = NULL; size_t lidSize = 0; do { - UtilLidMgr lidMgr(OCC_LIDID); + UtilLidMgr lidMgr(Util::OCC_LIDID); l_errl = lidMgr.getLidSize(lidSize); if(l_errl) { TRACFCOMP( g_fapiImpTd, ERR_MRK"loadOCCImageToHomer: Error getting lid size. lidId=0x%.8x", - OCC_LIDID); + Util::OCC_LIDID); break; } @@ -103,7 +103,7 @@ namespace HBOCC { TRACFCOMP( g_fapiImpTd, ERR_MRK"loadOCCImageToHomer: Error getting lid.. lidId=0x%.8x", - OCC_LIDID); + Util::OCC_LIDID); break; } diff --git a/src/usr/hwpf/hwp/occ/runtime/rt_occ.C b/src/usr/hwpf/hwp/occ/runtime/rt_occ.C index d76d403d4..07f63e79f 100644 --- a/src/usr/hwpf/hwp/occ/runtime/rt_occ.C +++ b/src/usr/hwpf/hwp/occ/runtime/rt_occ.C @@ -198,7 +198,7 @@ namespace RT_OCC } // Load HOMER image - UtilLidMgr lidmgr(HBOCC::OCC_LIDID); + UtilLidMgr lidmgr(Util::OCC_LIDID); size_t lidSize = 0; err = lidmgr.getLidSize(lidSize); @@ -216,7 +216,7 @@ namespace RT_OCC TRACFCOMP( g_fapiTd, "OCC lid loaded. ID:%x size:%d", - HBOCC::OCC_LIDID, + Util::OCC_LIDID, lidSize); // Setup Host Data area of HOMER diff --git a/src/usr/hwpf/test/runtime/rt_occtest.H b/src/usr/hwpf/test/runtime/rt_occtest.H index 23d671a54..2ddfd5dbe 100644 --- a/src/usr/hwpf/test/runtime/rt_occtest.H +++ b/src/usr/hwpf/test/runtime/rt_occtest.H @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2014 */ +/* Contributors Listed Below - COPYRIGHT 2014 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -30,6 +32,7 @@ #include <targeting/common/commontargeting.H> #include <vmmconst.h> #include <sys/mm.h> +#include <util/utillidmgr.H> class OccTest: public CxxTest::TestSuite { @@ -79,9 +82,9 @@ class OccTest: public CxxTest::TestSuite { TS_FAIL("runtimeInterfaces->get_lid_list empty list"); } - else if (list[0] != HBOCC::OCC_LIDID) + else if (list[0] != Util::OCC_LIDID) { - TS_FAIL("runtimeInterface->get_list_list missing OCCLID"); + TS_FAIL("runtimeInterface->get_lid_list missing OCCLID"); } } |