From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH 08/16] arm: really allocate boot frametable pages with 32M alignment Date: Mon, 3 Sep 2012 13:30:48 +0000 Message-ID: <1346679056-8108-8-git-send-email-ian.campbell@citrix.com> References: <1346678886.32462.9.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1346678886.32462.9.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org This argument to alloc_boot_pages is "pfn_align" and not an order. We've been lucky until now that the area given to the boot allocator happened to be properly aligned and this allocation was early enough to benefit. Signed-off-by: Ian Campbell --- xen/arch/arm/mm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index 52bb5c7..aafc48c 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -353,7 +353,7 @@ void __init setup_frametable_mappings(paddr_t ps, paddr_t pe) /* Round up to 32M boundary */ frametable_size = (frametable_size + 0x1ffffff) & ~0x1ffffff; - base_mfn = alloc_boot_pages(frametable_size >> PAGE_SHIFT, 5); + base_mfn = alloc_boot_pages(frametable_size >> PAGE_SHIFT, 32<<(20-12)); create_mappings(FRAMETABLE_VIRT_START, base_mfn, frametable_size >> PAGE_SHIFT); memset(&frame_table[0], 0, nr_pages * sizeof(struct page_info)); -- 1.7.9.1