summaryrefslogtreecommitdiffstats
path: root/src/usr/pnor/runtime/rt_pnor.C
diff options
context:
space:
mode:
authorNick Bofferding <bofferdn@us.ibm.com>2017-04-22 17:15:03 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-05-08 14:12:48 -0400
commit8527fc2b9549b9b6782fdffde29ff8713e677bc4 (patch)
treeeb277c60fcf28eec2116546c2ce4be6ca4a53144 /src/usr/pnor/runtime/rt_pnor.C
parentb93bb1c4e5151e309231a6b667bc98deaf98572f (diff)
downloadtalos-hostboot-8527fc2b9549b9b6782fdffde29ff8713e677bc4.tar.gz
talos-hostboot-8527fc2b9549b9b6782fdffde29ff8713e677bc4.zip
Support gracefully adding signing headers to PNOR sections
Change-Id: Ie8ce7672a41c0b6230918911f59ada5443c552f5 RTC: 170650 CMVC-Coreq: 1022416 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39869 Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/pnor/runtime/rt_pnor.C')
-rw-r--r--src/usr/pnor/runtime/rt_pnor.C20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/usr/pnor/runtime/rt_pnor.C b/src/usr/pnor/runtime/rt_pnor.C
index a614ae274..d4f5f8400 100644
--- a/src/usr/pnor/runtime/rt_pnor.C
+++ b/src/usr/pnor/runtime/rt_pnor.C
@@ -86,6 +86,24 @@ errlHndl_t PNOR::clearSection(PNOR::SectionId i_section)
return Singleton<RtPnor>::instance().clearSection(i_section);
}
+// @TODO RTC 173489
+// Remove API once FSP fully supports signing of PNOR sections that did not
+// previously have a sha512 header
+errlHndl_t PNOR::readHeaderMagic(
+ const PNOR::SectionId i_secId,
+ const PNOR::SectionData_t& i_TOC,
+ const size_t i_size,
+ void* const o_pData)
+{
+ errlHndl_t pError = RtPnor::readFromDevice (RtPnor::iv_masterProcId,
+ i_secId,
+ 0,
+ i_size,
+ false,
+ o_pData);
+ return pError;
+}
+
void PNOR::getPnorInfo( PnorInfo_t& o_pnorInfo )
{
o_pnorInfo.mmioOffset = LPC_SFC_MMIO_OFFSET | LPC_FW_SPACE;
@@ -365,7 +383,7 @@ errlHndl_t RtPnor::readFromDevice (uint64_t i_procId,
uint64_t i_offset,
size_t i_size,
bool i_ecc,
- void* o_data) const
+ void* o_data)
{
TRACFCOMP(g_trac_pnor, ENTER_MRK"RtPnor::readFromDevice: i_offset=0x%X, "
"i_procId=%d sec=%d size=0x%X ecc=%d", i_offset, i_procId, i_section,
OpenPOWER on IntegriCloud