summaryrefslogtreecommitdiffstats
path: root/src/usr/runtime
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2017-06-06 16:11:29 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-06-08 10:30:04 -0400
commitbb0796065c4a8035b0f0a9bddee61edc8f221c38 (patch)
tree9d568b33e71872b9d8c93c502677bf73d2764ebd /src/usr/runtime
parent819fecd808a275e4d54d20ed4db01d6dd9ce74f2 (diff)
downloadtalos-hostboot-bb0796065c4a8035b0f0a9bddee61edc8f221c38.tar.gz
talos-hostboot-bb0796065c4a8035b0f0a9bddee61edc8f221c38.zip
Fix imageSize for HBRT_RSVD_MEM__CODE section
Change-Id: I976c94a1452fc6052635b9cbe8769578d3b15ce7 RTC: 171863 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41457 Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/runtime')
-rw-r--r--src/usr/runtime/populate_hbruntime.C5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr/runtime/populate_hbruntime.C b/src/usr/runtime/populate_hbruntime.C
index 5b0ead76b..8a2ddd944 100644
--- a/src/usr/runtime/populate_hbruntime.C
+++ b/src/usr/runtime/populate_hbruntime.C
@@ -905,11 +905,12 @@ errlHndl_t populate_HbRsvMem(uint64_t i_nodeId)
l_hbrtImageAddr = ALIGN_PAGE_DOWN(l_prevDataAddr);
l_hbrtImageAddr = ALIGN_PAGE_DOWN(l_hbrtImageAddr - l_imageSize);
l_hbrtImageAddr = ALIGN_DOWN_X(l_hbrtImageAddr,64*KILOBYTE);
+ size_t l_hbrtImageSizeAligned = ALIGN_X( l_imageSize, 64*KILOBYTE );
l_elog = setNextHbRsvMemEntry(HDAT::RHB_TYPE_HBRT,
i_nodeId,
l_hbrtImageAddr,
- l_attrSizeAligned,
+ l_hbrtImageSizeAligned,
HBRT_RSVD_MEM__CODE);
if(l_elog)
{
@@ -917,7 +918,7 @@ errlHndl_t populate_HbRsvMem(uint64_t i_nodeId)
}
l_prevDataAddr = l_hbrtImageAddr;
- l_prevDataSize = l_attrSizeAligned;
+ l_prevDataSize = l_hbrtImageSizeAligned;
// Load the HBRT image into memory
l_elog = mapPhysAddr(l_hbrtImageAddr, l_imageSize, l_vAddr);
OpenPOWER on IntegriCloud