diff options
| author | Nick Bofferding <bofferdn@us.ibm.com> | 2016-06-28 09:27:19 -0500 |
|---|---|---|
| committer | William G. Hoffa <wghoffa@us.ibm.com> | 2016-07-06 10:34:58 -0400 |
| commit | b18f35fb5748bb6caf7c81f3080a02bdc33e0347 (patch) | |
| tree | bc05f8373dd993ab1f9428d04addbed023afc785 /src/include/usr/pnor | |
| parent | 9e1be45e48abff56989cebe2372380d33108a2d1 (diff) | |
| download | talos-hostboot-b18f35fb5748bb6caf7c81f3080a02bdc33e0347.tar.gz talos-hostboot-b18f35fb5748bb6caf7c81f3080a02bdc33e0347.zip | |
Support secure load and unload API prototype
- Implement API for load and unload of secure section
- Implement test to ensure API is callable
Change-Id: Ie82d7e39b6adca703c4cfa4f79fb77be54d0c88b
Forwardport: yes
RTC: 156118
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26358
Tested-by: Jenkins Server <pfd-jenkins+hostboot@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: Stephen M. Cprek <smcprek@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26658
Diffstat (limited to 'src/include/usr/pnor')
| -rw-r--r-- | src/include/usr/pnor/pnorif.H | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/include/usr/pnor/pnorif.H b/src/include/usr/pnor/pnorif.H index 1a18750b5..f5e4fc385 100644 --- a/src/include/usr/pnor/pnorif.H +++ b/src/include/usr/pnor/pnorif.H @@ -80,6 +80,37 @@ errlHndl_t getSideInfo (SideId i_side, SideInfo_t& o_info); */ errlHndl_t getSectionInfo( SectionId i_section, SectionInfo_t& o_info ); + +/** + * @brief Loads requested PNOR section to secure virtual address space + * + * @par Detailed Description: + * Loads requested PNOR section to secure virtual address space. If secure + * mode is enabled, the load will fully validate the section before + * placing it in the address space. Returns error if the requested + * section does not have secure space support. + * + * @param[in] i_section PNOR section to load. Section must not already be + * loaded. + * + * @return errlHndl_t Error log handle + * @retval NULL Successfully loaded PNOR section + * @retval !NULL Failed to load PNOR section + */ +errlHndl_t loadSecureSection(SectionId i_section); + +/** + * @brief Flushes any applicable pending writes and unloads requested PNOR + * section from secure virtual address space + * + * @param[in] i_section PNOR section to unload. No-op if already unloaded. + * + * @return errlHndl_t Error log handle + * @retval NULL Successfully unloaded PNOR section + * @retval !NULL Failed to unload PNOR section + */ +errlHndl_t unloadSecureSection(SectionId i_section); + /** * @brief Write the data back from hostboot memory to PNOR of a given section * of PNOR |

