summaryrefslogtreecommitdiffstats
path: root/src/usr/isteps/mem_utils.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/isteps/mem_utils.C')
-rw-r--r--src/usr/isteps/mem_utils.C8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/usr/isteps/mem_utils.C b/src/usr/isteps/mem_utils.C
index 89961ef5e..948dbdf17 100644
--- a/src/usr/isteps/mem_utils.C
+++ b/src/usr/isteps/mem_utils.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2018 */
+/* Contributors Listed Below - COPYRIGHT 2018,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -28,6 +28,7 @@
#include <errl/hberrltypes.H>
#include <secureboot/smf_utils.H>
#include <stdint.h>
+#include <isteps/nvdimm/nvdimmif.H>
namespace ISTEP
{
@@ -208,6 +209,11 @@ uint64_t get_top_homer_mem_addr()
l_top_homer_addr = get_top_mem_addr();
}
+ // Need to make sure we don't choose a range that is owned by
+ // the NVDIMMs
+ l_top_homer_addr =
+ NVDIMM::get_top_addr_with_no_nvdimms(l_top_homer_addr);
+
}while(0);
return l_top_homer_addr;
OpenPOWER on IntegriCloud