diff options
author | Stephen Cprek <smcprek@us.ibm.com> | 2017-05-15 14:57:33 -0500 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2017-06-01 16:58:38 -0400 |
commit | ef42b9f0d4600b9ab3a54e81936b09534eec3b55 (patch) | |
tree | bd1c1853c3e686f9ea5bb8c62f671672e146af48 /src/include | |
parent | d96098eaf93f873dc859dacb1b91eb95f1c8877a (diff) | |
download | talos-hostboot-ef42b9f0d4600b9ab3a54e81936b09534eec3b55.tar.gz talos-hostboot-ef42b9f0d4600b9ab3a54e81936b09534eec3b55.zip |
Provide ability to clear an HDAT memory region and clear HB resv mem
Clear all HDAT HB reserved memory sections before hostboot populates
This is done to ensure that nothing in this section is written by
the FSP or some other process
Change-Id: I70f4fabc2f9bebab0fe3f170d4676183a4bc638b
RTC: 156485
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40514
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/usr/runtime/runtime.H | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/include/usr/runtime/runtime.H b/src/include/usr/runtime/runtime.H index c16c1e298..e4b4b4121 100644 --- a/src/include/usr/runtime/runtime.H +++ b/src/include/usr/runtime/runtime.H @@ -30,6 +30,7 @@ #include <builtins.h> #include <errl/errlentry.H> #include <hdat/hdat.H> +#include "../../../src/usr/runtime/hdatstructs.H" namespace RUNTIME { @@ -163,10 +164,19 @@ enum SectionId errlHndl_t get_host_data_section( SectionId i_section, uint64_t i_instance, uint64_t& o_dataAddr, - size_t& o_dataSize ); + size_t& o_dataSize); const size_t DATA_SIZE_UNKNOWN = 0xFFFFFFFFFFFFFFFF; /** + * @brief Clear section of host data memory one instance at a time. + * + * @param[in] i_section Chunk of data to clear + * + * @return errlHndl_t nullptr on success, pointer to error log on failure + */ +errlHndl_t clear_host_data_section(const RUNTIME::SectionId i_section); + +/** * @brief Get the number of instances in a given section. * * @param[in] i_section The section for which the instance count is desired |