From 3d3d39d62a94da9dc9bc2da73474c9c3400762c4 Mon Sep 17 00:00:00 2001 From: Mike Baiocchi Date: Thu, 3 May 2018 09:02:02 -0500 Subject: Get Final HDAT Size from PAYLOAD's SPIRA section This commit retrieves the amount of space the PAYLOAD has reserved for the HDAT content in its SPIRA section. It then uses this size when copying the HDAT from the temporary location (where the FSP put it with DMAs-via-TCEs) to its final location. Change-Id: I430a78a1655db85f448b3f5c30e6a83f5be4b1f6 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58261 Reviewed-by: ILYA SMIRNOV Reviewed-by: Nicholas E. Bofferding Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/include/usr/runtime/runtime.H | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include/usr/runtime') diff --git a/src/include/usr/runtime/runtime.H b/src/include/usr/runtime/runtime.H index 9b8112a2b..042ff8002 100644 --- a/src/include/usr/runtime/runtime.H +++ b/src/include/usr/runtime/runtime.H @@ -351,8 +351,11 @@ errlHndl_t openUntrustedSpCommArea(uint64_t i_commbase); * * @param[in] payloadBase_va - Virtual Address pointing to start of PAYLOAD * @param[out] o_hdat_offset - Offset of HDAT Location from start of PAYLOAD + * @param[out] o_hdat_size - Size of HDAT Location reserved by PAYLOAD */ -void findHdatLocation(uint64_t payloadBase_va, uint64_t& o_hdat_offset); +void findHdatLocation(uint64_t payloadBase_va, + uint64_t& o_hdat_offset, + size_t& o_hdat_size); } -- cgit v1.2.1