From patchwork Tue Nov 19 18:52:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 21634 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f198.google.com (mail-ob0-f198.google.com [209.85.214.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 489F823FB4 for ; Tue, 19 Nov 2013 18:52:31 +0000 (UTC) Received: by mail-ob0-f198.google.com with SMTP id vb8sf11020688obc.1 for ; Tue, 19 Nov 2013 10:52:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=O5XzoDQocI4HxU5YxmDUok2bBuPu8I1sqymyUy9OKvE=; b=MQApm/jVyLmgnKYMl9QfFPYX4ae6Sn57XFvFcSf6JX7LQxFzNUJdVCe17qd0+mlztU e0LxuRAHfo7CaqKYLg5ehnNdZmMpgSOQyoCSteVCrzK7idUAeJIXGgB1/2zB5rvo2vS6 ajJyTlOHfTHN9vagFYOV6XTNQRl1DzveZZfcPeQ1B1CsXD0O2ZOi7pCobyMhvmIVTwbJ 9aVN6B34Zl+M0M2iLWm8q0BMqTlznr6MLJc5WuBbawCNj2BQHs5I/mn3pKt26bypJ7aX ETXaZl2Fc3fQngFaF7PHCElEEccwzu7Lx1Lsgk+oByonBD7ViEDISbJWoUGx/dHFZ+sn zUiw== X-Gm-Message-State: ALoCoQk6wc7Do0+K4kIPm9J9B2lQVf7tjJg5OYk3LeJufVLEk6PB2agRnTqBWIFIYoUUnC9YmzDv X-Received: by 10.182.236.74 with SMTP id us10mr355472obc.36.1384887149880; Tue, 19 Nov 2013 10:52:29 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.98.35 with SMTP id ef3ls3172748qeb.76.gmail; Tue, 19 Nov 2013 10:52:29 -0800 (PST) X-Received: by 10.221.64.17 with SMTP id xg17mr22286545vcb.5.1384887149773; Tue, 19 Nov 2013 10:52:29 -0800 (PST) Received: from mail-vb0-f41.google.com (mail-vb0-f41.google.com [209.85.212.41]) by mx.google.com with ESMTPS id om4si8312949vcb.68.2013.11.19.10.52.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Nov 2013 10:52:29 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.41 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.41; Received: by mail-vb0-f41.google.com with SMTP id w5so722821vbf.28 for ; Tue, 19 Nov 2013 10:52:29 -0800 (PST) X-Received: by 10.221.39.195 with SMTP id tn3mr22206731vcb.2.1384887149657; Tue, 19 Nov 2013 10:52:29 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp299731vcz; Tue, 19 Nov 2013 10:52:29 -0800 (PST) X-Received: by 10.180.77.49 with SMTP id p17mr3638303wiw.30.1384887148526; Tue, 19 Nov 2013 10:52:28 -0800 (PST) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by mx.google.com with ESMTPS id jr6si8159558wjc.99.2013.11.19.10.52.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Nov 2013 10:52:28 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.171 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=209.85.212.171; Received: by mail-wi0-f171.google.com with SMTP id hj6so2736231wib.10 for ; Tue, 19 Nov 2013 10:52:28 -0800 (PST) X-Received: by 10.180.184.14 with SMTP id eq14mr22238373wic.56.1384887148006; Tue, 19 Nov 2013 10:52:28 -0800 (PST) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id gg20sm100158wic.1.2013.11.19.10.52.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Nov 2013 10:52:27 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Cc: patches@linaro.org, ian.campbell@citrix.com, tim@xen.org, ian.jackson@eu.citrix.com, stefano.stabellini@citrix.com, Julien Grall Subject: [PATCH] libxc/arm: align to page size the base address of the device tree Date: Tue, 19 Nov 2013 18:52:24 +0000 Message-Id: <1384887144-7229-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.41 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , xc_dom_alloc_segment requires start address to be page align. Signed-off-by: Julien Grall --- 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 "",