summaryrefslogtreecommitdiffstats
path: root/src/include/usr/runtime
diff options
context:
space:
mode:
authorMike Baiocchi <mbaiocch@us.ibm.com>2018-02-07 10:08:45 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-02-08 14:21:57 -0500
commitb1d0900ad706cd8e2a91a1acab016f5b681e23ef (patch)
treef881039f56e4ed423401bd54d3f10fb90800d10e /src/include/usr/runtime
parent03de84e713fb21f0e091ff29f05a77fec9e240b3 (diff)
downloadtalos-hostboot-b1d0900ad706cd8e2a91a1acab016f5b681e23ef.tar.gz
talos-hostboot-b1d0900ad706cd8e2a91a1acab016f5b681e23ef.zip
Find location of HDAT relocation dynamically from PAYLOAD
This commit looks at the NACA structure in the Primary PAYLOAD lid to determine the final destination of the HDAT structure that the FSP loaded into a temporary memory space using TCEs. Change-Id: I82b94f5fc133e4222d4efdcc7444012d7bcb5166 RTC:168745 Backport:release-fips910 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53564 Reviewed-by: ILYA SMIRNOV <ismirno@us.ibm.com> Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com> 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> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/runtime')
-rw-r--r--src/include/usr/runtime/runtime.H12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/usr/runtime/runtime.H b/src/include/usr/runtime/runtime.H
index 798b15807..855ef86ac 100644
--- a/src/include/usr/runtime/runtime.H
+++ b/src/include/usr/runtime/runtime.H
@@ -264,6 +264,18 @@ void rediscover_hdat( void );
*/
errlHndl_t openUntrustedSpCommArea();
+/**
+ * @brief Locates the offset of the HDAT structure as directed by the PAYLOAD
+ *
+ * Walks the NACA in the PAYLOAD to find the SpiraH structure. The SpiraH
+ * structure contains the offset to the SpiraS structure which is where the
+ * PAYLOAD expects the HDAT structure to be placed.
+ *
+ * @param[in] payloadBase_va - Virtual Address pointing to start of PAYLOAD
+ * @param[out] o_hdat_offset - Offset of HDAT Location from start of PAYLOAD
+ */
+void findHdatLocation(uint64_t payloadBase_va, uint64_t& o_hdat_offset);
+
}
#endif
OpenPOWER on IntegriCloud