diff options
author | Ilya Smirnov <ismirno@us.ibm.com> | 2019-01-14 08:40:19 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-01-16 14:42:09 -0600 |
commit | 39295f752d61cfe4c988dc3e483ab7e8741630b6 (patch) | |
tree | 8aa530db6f24a3ea1ecbf5a4eed48ff2cfc12545 | |
parent | afdc9cd94432c69138a41ece8afa549f36229564 (diff) | |
download | talos-hostboot-39295f752d61cfe4c988dc3e483ab7e8741630b6.tar.gz talos-hostboot-39295f752d61cfe4c988dc3e483ab7e8741630b6.zip |
Follow-up Changes on SMF NVRAM End-To-End
Some minor changes to SMF NVRAM end-to-end commit
that were requested in review but didn't make it into
the original commit.
Change-Id: I2eef8ef236dd67e6dd14568a270b6f77b3741c5b
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70445
Tested-by: Jenkins Server <pfd-jenkins+hostboot@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>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
-rw-r--r-- | src/lib/stdlib.C | 4 | ||||
-rw-r--r-- | src/usr/isteps/istep07/call_mss_eff_config.C | 16 |
2 files changed, 12 insertions, 8 deletions
diff --git a/src/lib/stdlib.C b/src/lib/stdlib.C index 2688959bd..21f45fffc 100644 --- a/src/lib/stdlib.C +++ b/src/lib/stdlib.C @@ -29,6 +29,7 @@ #include <kernel/pagemgr.H> #include <kernel/console.H> #include <config.h> +#include <assert.h> #ifdef HOSTBOOT_MEMORY_LEAKS #include <arch/ppc.H> @@ -165,6 +166,9 @@ uint64_t strtoul(const char *nptr, char **endptr, int base) { uint64_t l_data = 0; size_t i = 0; + + crit_assert(base == 16); + while( nptr[i] != '\0' ) { uint64_t l_nib = 0; diff --git a/src/usr/isteps/istep07/call_mss_eff_config.C b/src/usr/isteps/istep07/call_mss_eff_config.C index b6aebf5cb..adc62d750 100644 --- a/src/usr/isteps/istep07/call_mss_eff_config.C +++ b/src/usr/isteps/istep07/call_mss_eff_config.C @@ -104,7 +104,7 @@ errlHndl_t call_mss_eff_grouping(IStepError & io_istepErr) // capture the target data in the elog ErrlUserDetailsTarget(l_cpu_target).addToLog(l_err); io_istepErr.addErrorDetails(l_err); - errlCommit(l_err, HWPF_COMP_ID); + errlCommit(l_err, ISTEP_COMP_ID); } else { @@ -179,7 +179,7 @@ void* call_mss_eff_config( void *io_pArgs ) // Create istep error and link it to PLID of original error l_StepError.addErrorDetails(l_err); - errlCommit(l_err, HWPF_COMP_ID); + errlCommit(l_err, ISTEP_COMP_ID); break; } memdLoaded = true; @@ -292,7 +292,7 @@ void* call_mss_eff_config( void *io_pArgs ) l_err->collectTrace(EEPROM_COMP_NAME); l_err->collectTrace(I2C_COMP_NAME); l_StepError.addErrorDetails(l_err); - errlCommit(l_err, HWPF_COMP_ID); + errlCommit(l_err, ISTEP_COMP_ID); continue; } @@ -308,7 +308,7 @@ void* call_mss_eff_config( void *io_pArgs ) { // Ensure istep error created and has same plid as this error l_StepError.addErrorDetails( l_err ); - errlCommit( l_err, HWPF_COMP_ID ); + errlCommit( l_err, ISTEP_COMP_ID); } else { @@ -415,7 +415,7 @@ void* call_mss_eff_config( void *io_pArgs ) // Ensure istep error created and has same plid as this error l_StepError.addErrorDetails(l_err); - errlCommit(l_err, HWPF_COMP_ID); + errlCommit(l_err, ISTEP_COMP_ID); } else { @@ -435,7 +435,7 @@ void* call_mss_eff_config( void *io_pArgs ) { // Ensure istep error created and has same plid as this error l_StepError.addErrorDetails( l_err ); - errlCommit( l_err, HWPF_COMP_ID ); + errlCommit( l_err, ISTEP_COMP_ID); } } @@ -463,7 +463,7 @@ void* call_mss_eff_config( void *io_pArgs ) { // Do not propagate or break on error - distributeSmfMem will // not return unrecoverable errors. - errlCommit(l_err, HWPF_COMP_ID); + errlCommit(l_err, ISTEP_COMP_ID); } } else @@ -487,7 +487,7 @@ void* call_mss_eff_config( void *io_pArgs ) // Create istep error and link it to PLID of original error l_StepError.addErrorDetails(l_err); - errlCommit(l_err, HWPF_COMP_ID); + errlCommit(l_err, ISTEP_COMP_ID); } else { |