From patchwork Fri Dec 18 21:41:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Creekmore X-Patchwork-Id: 7888751 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 597A0BEEE5 for ; Fri, 18 Dec 2015 21:44:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7CD5720382 for ; Fri, 18 Dec 2015 21:44:48 +0000 (UTC) Received: from lists.xen.org (lists.xenproject.org [50.57.142.19]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A719F2035D for ; Fri, 18 Dec 2015 21:44:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aA2ml-00074b-5T; Fri, 18 Dec 2015 21:41:59 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aA2mj-00073Z-FX for xen-devel@lists.xenproject.org; Fri, 18 Dec 2015 21:41:57 +0000 Received: from [85.158.139.211] by server-9.bemta-5.messagelabs.com id 42/6A-30270-4AD74765; Fri, 18 Dec 2015 21:41:56 +0000 X-Env-Sender: jonathan.creekmore@gmail.com X-Msg-Ref: server-4.tower-206.messagelabs.com!1450474915!11704376!1 X-Originating-IP: [209.85.160.170] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 7.35.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 923 invoked from network); 18 Dec 2015 21:41:55 -0000 Received: from mail-yk0-f170.google.com (HELO mail-yk0-f170.google.com) (209.85.160.170) by server-4.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 18 Dec 2015 21:41:55 -0000 Received: by mail-yk0-f170.google.com with SMTP id x184so73927154yka.3 for ; Fri, 18 Dec 2015 13:41:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qg9VhVe5n+2aw0r1pd8zTC1OGRVh68Sly03+beo2PRg=; b=D7RvKaBF0yfF+vUZghoJSmZzjJxIu6xLhwKQbKkEXE2ncHDOyzLi70sxZ2jwAGgtS1 YT/BhRRlbuMCnr5aGijXPia5ApKI6iURVsIy69IcjeOr236ea5+oYxqPRJJE793Xc+R3 TA6lQn++RTIdZQgP8BI+Zv7tjtVFm51iIY96DkYVzzCVnBMZAo6HMZT6J+XwxUagePZc 100Gb6/13ETkVTroyZJBMy4e8fGIGDSLIFRBfSKdZhu0W3wbR++eta/+7xJu+des2q7G hGRg+Ob9Z8Pdyf7FPWt1kvPG10AlaKC0UjLgqeDkCG89X58E1pnR0MLAocNaN+1yiN70 uNPQ== X-Received: by 10.129.95.6 with SMTP id t6mr5388086ywb.113.1450474914977; Fri, 18 Dec 2015 13:41:54 -0800 (PST) Received: from Nebula.lan (c-68-34-224-206.hsd1.al.comcast.net. [68.34.224.206]) by smtp.gmail.com with ESMTPSA id i125sm17798672ywi.28.2015.12.18.13.41.54 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Dec 2015 13:41:54 -0800 (PST) From: Jonathan Creekmore To: xen-devel@lists.xenproject.org Date: Fri, 18 Dec 2015 15:41:28 -0600 Message-Id: <1450474890-15491-3-git-send-email-jonathan.creekmore@gmail.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1450474890-15491-1-git-send-email-jonathan.creekmore@gmail.com> References: <1450474890-15491-1-git-send-email-jonathan.creekmore@gmail.com> Cc: Keir Fraser , Ian Campbell , Jonathan Creekmore , Stefano Stabellini , Jan Beulich , Andrew Cooper Subject: [Xen-devel] [PATCH v2 2/4] build: Alloc space for sched list in the link file X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, 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 Creates a section to contain scheduler entry pointers that are gathered together into an array. This will allow, in a follow-on patch, scheduler entries to be automatically gathered together into the array for automatic parsing. CC: Ian Campbell CC: Stefano Stabellini CC: Keir Fraser CC: Jan Beulich CC: Andrew Cooper Signed-off-by: Jonathan Creekmore Reviewed-by: Andrew Cooper --- Changed since v1: * rename the __start and __end symbols to better match the rest of the file --- xen/arch/arm/xen.lds.S | 4 ++++ xen/arch/x86/xen.lds.S | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S index 0488f37..f501a2f 100644 --- a/xen/arch/arm/xen.lds.S +++ b/xen/arch/arm/xen.lds.S @@ -57,6 +57,10 @@ SECTIONS . = ALIGN(PAGE_SIZE); *(.data.page_aligned) *(.data) + . = ALIGN(8); + __start_schedulers_array = .; + *(.data.schedulers) + __end_schedulers_array = .; *(.data.rel) *(.data.rel.*) CONSTRUCTORS diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index e18e08f..c1ce027 100644 --- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -80,6 +80,10 @@ SECTIONS __stop___pre_ex_table = .; *(.data.read_mostly) + . = ALIGN(8); + __start_schedulers_array = .; + *(.data.schedulers) + __end_schedulers_array = .; *(.data.rel.ro) *(.data.rel.ro.*) } :text