From patchwork Wed Dec 10 20:00:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jones X-Patchwork-Id: 5471921 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 24E78BEEBA for ; Wed, 10 Dec 2014 20:00:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6CFD6201C8 for ; Wed, 10 Dec 2014 20:00:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 77DC7201C7 for ; Wed, 10 Dec 2014 20:00:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933054AbaLJUAm (ORCPT ); Wed, 10 Dec 2014 15:00:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48901 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933046AbaLJUAl (ORCPT ); Wed, 10 Dec 2014 15:00:41 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sBAK0a69007733 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Dec 2014 15:00:37 -0500 Received: from hawk.usersys.redhat.com ([10.34.1.145]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sBAK0CaZ028915; Wed, 10 Dec 2014 15:00:35 -0500 From: Andrew Jones To: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Cc: christoffer.dall@linaro.org, pbonzini@redhat.com, alex.bennee@linaro.org Subject: [PATCH 14/15] arm64: prepare for 64k pages Date: Wed, 10 Dec 2014 21:00:07 +0100 Message-Id: <1418241608-13966-15-git-send-email-drjones@redhat.com> In-Reply-To: <1418241608-13966-1-git-send-email-drjones@redhat.com> References: <1418241608-13966-1-git-send-email-drjones@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This changes the layout for arm too, but that's fine. The only thing to keep in mind is that while arm64 will have a single 64k page for its stack, arm will have 16 4k pages. If the number of stack pages matters, then unit tests that want to work for both arm and arm64, may need to avoid using more than one page, even though the memory is there. Signed-off-by: Andrew Jones --- arm/flat.lds | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arm/flat.lds b/arm/flat.lds index ee9fc0ab79abc..89a55720d728f 100644 --- a/arm/flat.lds +++ b/arm/flat.lds @@ -2,10 +2,10 @@ SECTIONS { .text : { *(.init) *(.text) *(.text.*) } - . = ALIGN(4K); + . = ALIGN(64K); .data : { exception_stacks = .; - . += 4K; + . += 64K; exception_stacks_end = .; *(.data) } @@ -13,10 +13,10 @@ SECTIONS .rodata : { *(.rodata) } . = ALIGN(16); .bss : { *(.bss) } - . = ALIGN(4K); + . = ALIGN(64K); edata = .; - . += 8K; - . = ALIGN(4K); + . += 64K; + . = ALIGN(64K); stacktop = .; }