summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorMarty Gloff <mgloff@us.ibm.com>2016-03-23 15:30:34 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2016-04-05 13:25:22 -0400
commit6e0d21f16e8153125f8dbd2a8feb4ce56ff54e39 (patch)
tree6d2195550cb402f358beb46f6fb0ddce57a2136b /src/usr
parent2d6c5d55d9427de5fdb66ef880d19c9f5eb24328 (diff)
downloadtalos-hostboot-6e0d21f16e8153125f8dbd2a8feb4ce56ff54e39.tar.gz
talos-hostboot-6e0d21f16e8153125f8dbd2a8feb4ce56ff54e39.zip
Bootloader needs to dcbz the cache before using it
Add loops to do dcbz instructions. One loop covers L3 cache from the end of the Bootloader load to the end of the area used for storing a copy of HBB with ECC. The other loop covers L3 cache from the start of the area for storing the running copy of HBB to the start of the Bootloader load. Change-Id: If3bb157fe0ea1e61ed5db6c1264b5756cc8453d9 RTC:147380 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22413 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: CHRISTINA L. GRAVES <clgraves@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/pnor/pnor_utils.C2
-rw-r--r--src/usr/pnor/pnor_utils.H2
-rw-r--r--src/usr/pnor/test/pnorutilsTest.H6
3 files changed, 5 insertions, 5 deletions
diff --git a/src/usr/pnor/pnor_utils.C b/src/usr/pnor/pnor_utils.C
index a78b5cdc1..96ab528ee 100644
--- a/src/usr/pnor/pnor_utils.C
+++ b/src/usr/pnor/pnor_utils.C
@@ -260,7 +260,7 @@ void PNOR::getSectionEnum (ffs_entry* i_entry,
*/
void PNOR::parseEntries (ffs_hdr* i_ffs_hdr,
uint32_t& io_errCode,
- SectionData_t *& io_TOC,
+ SectionData_t * io_TOC,
ffs_entry*& o_err_entry)
{
//Walk through all the entries in the table and parse the data.
diff --git a/src/usr/pnor/pnor_utils.H b/src/usr/pnor/pnor_utils.H
index 1ceada403..daff13c3b 100644
--- a/src/usr/pnor/pnor_utils.H
+++ b/src/usr/pnor/pnor_utils.H
@@ -217,7 +217,7 @@ void getSectionEnum (ffs_entry* i_entry,
*/
void parseEntries (ffs_hdr* i_ffs_hdr,
uint32_t& io_errCode,
- SectionData_t*& io_TOC,
+ SectionData_t* io_TOC,
ffs_entry*& o_err_entry);
} // End namespace PNOR
diff --git a/src/usr/pnor/test/pnorutilsTest.H b/src/usr/pnor/test/pnorutilsTest.H
index 937d59b85..c71f90e54 100644
--- a/src/usr/pnor/test/pnorutilsTest.H
+++ b/src/usr/pnor/test/pnorutilsTest.H
@@ -274,7 +274,7 @@ class pnorutilsTest : public CxxTest::TestSuite
//Mess up the checksum of an entry
l_tocBuffer[208] = 0xFF;
- PNOR::SectionData_t * l_TOC;
+ PNOR::SectionData_t l_TOC[PNOR::NUM_SECTIONS];
ffs_hdr* l_ffs_hdr = NULL;
PNOR::checkForNullBuffer(l_tocBuffer, l_errCode, l_ffs_hdr);
PNOR::checkHeader(l_ffs_hdr, l_errCode);
@@ -315,7 +315,7 @@ class pnorutilsTest : public CxxTest::TestSuite
l_tocBuffer[213] = 0xFF;
l_tocBuffer[214] = 0xFF;
- PNOR::SectionData_t * l_TOC;
+ PNOR::SectionData_t l_TOC[PNOR::NUM_SECTIONS];
ffs_hdr* l_ffs_hdr = NULL;
PNOR::checkForNullBuffer(l_tocBuffer, l_errCode, l_ffs_hdr);
PNOR::checkHeader(l_ffs_hdr, l_errCode);
@@ -338,4 +338,4 @@ class pnorutilsTest : public CxxTest::TestSuite
}
};
-#endif \ No newline at end of file
+#endif
OpenPOWER on IntegriCloud