summaryrefslogtreecommitdiffstats
path: root/src/usr/nvram
diff options
context:
space:
mode:
authorIlya Smirnov <ismirno@us.ibm.com>2018-12-12 11:33:38 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-01-10 14:52:34 -0600
commit21f75b9e4475b92665e4dd8ca182108dab53045f (patch)
tree5534008afd3766285c4da672f3082a03d056fb88 /src/usr/nvram
parent1ba78c4580b6067882d62909c2ce2941ad36008d (diff)
downloadtalos-hostboot-21f75b9e4475b92665e4dd8ca182108dab53045f.tar.gz
talos-hostboot-21f75b9e4475b92665e4dd8ca182108dab53045f.zip
SMF: NVRAM Reading and Mem Distribution end-to-end Changes
This commit introduces the changes to read out the SMF secure memory amount value from NVRAM and to distribute the secure memory amount based on the value read. strtou64 was copied from runtime code to convert the value read from NVRAM (as a string) to uint64_t. Change-Id: I83e41f0aaff9b4035d20a517cf866f348acedd59 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69728 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> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/nvram')
-rw-r--r--src/usr/nvram/nvram_interface.C3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/usr/nvram/nvram_interface.C b/src/usr/nvram/nvram_interface.C
index e4bb95796..0c2049826 100644
--- a/src/usr/nvram/nvram_interface.C
+++ b/src/usr/nvram/nvram_interface.C
@@ -39,6 +39,9 @@ namespace NVRAM_TRACE
namespace NVRAM
{
+const char TEST_KEY[] = "test";
+const char SMF_MEM_AMT_KEY[] = "smf_mem_amt";
+
/*
* @brief Searches NVRAM partition for the i_key and puts the value in
* o_val. An error is returned if NVRAM can't be loaded or if
OpenPOWER on IntegriCloud