diff options
author | Marty Gloff <mgloff@us.ibm.com> | 2016-03-23 15:30:34 -0500 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2016-04-05 13:25:22 -0400 |
commit | 6e0d21f16e8153125f8dbd2a8feb4ce56ff54e39 (patch) | |
tree | 6d2195550cb402f358beb46f6fb0ddce57a2136b /src/usr/pnor/test | |
parent | 2d6c5d55d9427de5fdb66ef880d19c9f5eb24328 (diff) | |
download | talos-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/pnor/test')
-rw-r--r-- | src/usr/pnor/test/pnorutilsTest.H | 6 |
1 files changed, 3 insertions, 3 deletions
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 |