Skip to content

Commit

Permalink
Fix imageSize for HBRT_RSVD_MEM__CODE section
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mderkse1 authored and dcrowell77 committed Jun 8, 2017
1 parent 819fecd commit bb07960
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/usr/runtime/populate_hbruntime.C
Original file line number Diff line number Diff line change
Expand Up @@ -905,19 +905,20 @@ 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)
{
break;
}

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);
Expand Down

0 comments on commit bb07960

Please sign in to comment.