xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libxc/arm: align to page size the base address of the device tree
@ 2013-11-19 18:52 Julien Grall
  2013-11-20  9:48 ` Ian Campbell
  0 siblings, 1 reply; 8+ messages in thread
From: Julien Grall @ 2013-11-19 18:52 UTC (permalink / raw)
  To: xen-devel
  Cc: ian.campbell, patches, tim, Julien Grall, ian.jackson,
	stefano.stabellini

xc_dom_alloc_segment requires start address to be page align.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
---
 tools/libxc/xc_dom_arm.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/libxc/xc_dom_arm.c b/tools/libxc/xc_dom_arm.c
index ffe575b..366061d 100644
--- a/tools/libxc/xc_dom_arm.c
+++ b/tools/libxc/xc_dom_arm.c
@@ -290,6 +290,8 @@ int arch_setup_meminit(struct xc_dom_image *dom)
         else /* otherwise at top of RAM */
             dom->devicetree_seg.vstart = ramend - dtbsize;
 
+        dom->devicetree_seg.vstart &= XC_PAGE_MASK;
+
         dom->devicetree_seg.vend =
             dom->devicetree_seg.vstart + dom->devicetree_size;
         DOMPRINTF("%s: devicetree: 0x%" PRIx64 " -> 0x%" PRIx64 "",
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-11-21 11:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19 18:52 [PATCH] libxc/arm: align to page size the base address of the device tree Julien Grall
2013-11-20  9:48 ` Ian Campbell
2013-11-20 13:04   ` Julien Grall
2013-11-20 13:13     ` Ian Campbell
2013-11-20 13:17       ` Julien Grall
2013-11-20 13:30         ` Ian Campbell
2013-11-20 16:16           ` Julien Grall
2013-11-21 11:10             ` Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).