summaryrefslogtreecommitdiffstats
path: root/src/usr/devtree
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2015-02-12 15:16:11 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-02-16 15:30:40 -0600
commit9611008eb6768fc2d23a82560d75f43f101298b6 (patch)
tree9846bb1665f50f783158731cf2335830ceb01b05 /src/usr/devtree
parent0b03c03b42b899fbad17c3aa2f0b0b55c21bd60b (diff)
downloadtalos-hostboot-9611008eb6768fc2d23a82560d75f43f101298b6.tar.gz
talos-hostboot-9611008eb6768fc2d23a82560d75f43f101298b6.zip
Align all HBRT reserved memory to 64K boundary
Change-Id: Ifcc3afa30ed84189cf10c1a8df9a7b4e7d38ffea RTC: 123657 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15711 Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/devtree')
-rw-r--r--src/usr/devtree/bld_devtree.C2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/usr/devtree/bld_devtree.C b/src/usr/devtree/bld_devtree.C
index f1b0fb0da..908ce6e1f 100644
--- a/src/usr/devtree/bld_devtree.C
+++ b/src/usr/devtree/bld_devtree.C
@@ -857,6 +857,8 @@ void load_hbrt_image(uint64_t& io_address)
TRACFCOMP(g_trac_devtree, "HBRT image: start = %lx, size = %lx",
image_start, image_size);
io_address -= ALIGN_PAGE(image_size);
+ // Align to 64KB for Opal
+ io_address = ALIGN_DOWN_X(io_address,64*KILOBYTE);
// Copy image.
void* memArea = mm_block_map(reinterpret_cast<void*>(io_address),
OpenPOWER on IntegriCloud