xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: xen-devel@lists.xenproject.org
Cc: ian.campbell@citrix.com, patches@linaro.org, tim@xen.org,
	Julien Grall <julien.grall@linaro.org>,
	ian.jackson@eu.citrix.com, stefano.stabellini@citrix.com
Subject: [PATCH] libxc/arm: align to page size the base address of the device tree
Date: Tue, 19 Nov 2013 18:52:24 +0000	[thread overview]
Message-ID: <1384887144-7229-1-git-send-email-julien.grall@linaro.org> (raw)

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

             reply	other threads:[~2013-11-19 18:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-19 18:52 Julien Grall [this message]
2013-11-20  9:48 ` [PATCH] libxc/arm: align to page size the base address of the device tree 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1384887144-7229-1-git-send-email-julien.grall@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=patches@linaro.org \
    --cc=stefano.stabellini@citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).