From patchwork Fri Jan 15 17:01:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Creekmore X-Patchwork-Id: 8043431 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 53C74BEEE5 for ; Fri, 15 Jan 2016 17:04:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 74A6C20453 for ; Fri, 15 Jan 2016 17:04:27 +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 8C66320430 for ; Fri, 15 Jan 2016 17:04:26 +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 1aK7l0-0004dA-Pf; Fri, 15 Jan 2016 17:01:50 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aK7kz-0004cD-Ee for xen-devel@lists.xenproject.org; Fri, 15 Jan 2016 17:01:49 +0000 Received: from [193.109.254.147] by server-10.bemta-14.messagelabs.com id 62/F1-25438-CF529965; Fri, 15 Jan 2016 17:01:48 +0000 X-Env-Sender: jonathan.creekmore@gmail.com X-Msg-Ref: server-13.tower-27.messagelabs.com!1452877306!17179744!1 X-Originating-IP: [209.85.160.195] 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 5630 invoked from network); 15 Jan 2016 17:01:47 -0000 Received: from mail-yk0-f195.google.com (HELO mail-yk0-f195.google.com) (209.85.160.195) by server-13.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 15 Jan 2016 17:01:47 -0000 Received: by mail-yk0-f195.google.com with SMTP id y10so32214586ykf.0 for ; Fri, 15 Jan 2016 09:01:47 -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=b2LYEa3PwLeN2NHAR6XwO0NGZ766bb8JVoATv0nGP/A=; b=zVeoozn8o8cWV3CIQcJQ0XRhEvch5sHsnNA0WooNT0FLgEa6CLqfZvj8nzkQeFEXl3 T5tDRVftHSDMhOKLvhNrabt6u/M9Zux1Jk2hKKqeEj0hAezXdfP6hiy1qTQEyTxfFBox nHs8axhrL9rEvbLV7BRE3J5gAb4eMBcpPKSIm5/4ddt9z3YrNYod0ZAxtpb3dQkncCb5 YdtN4S5gnMXpPOGv4RZ6EneDTWcmFkC7OS533xsn314IJqKf93l96mrJWaPax+1WRn2u vmcH5FCehMvgTIX+aWYE6nM9dykV0BClGQFzVklEZUnIFRb8eFN7pTUztqLq1y0BGKSk Cd/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=b2LYEa3PwLeN2NHAR6XwO0NGZ766bb8JVoATv0nGP/A=; b=NYmD+2RWeY0kTqpZ2DB0cGvh7L04L7OsYSjC5YDAKFahNMW7DMkUbdur1Ab0unbUiD yIvcOCeCz9ODHYqzAwS+cTPCByX+tmYEgkrwaSkQ+6ugVoyvXAeSMAxT6iGRhw+tyEhf asxDFTR7k79Bc5oyYgu4K0kxuN5eyYN0nQaY4aVw6RTnX803PMfBfdJ+yJoyvWmeycjL Z/c3iA5s5ISQsVr3+zvJ9PyAAlGBG8LVVDnarWpitKsPKHTIIsdJRJsspOR04ViyZrQU 41OBivtXu4Cjm9i44UFbXEsSx3ZLS1FJPTR+fpZC/4N2dfGJB+ig8iaewd8zTFcuWAmb SpUg== X-Gm-Message-State: ALoCoQnbwDe11dm+hWTcBUIk2KQTnh+lEVEX7z8vj1HdLilRMupig/IIxzHObNa580LpKV5h+VT37pWWJbSpakdA6QLKAf8UzQ== X-Received: by 10.129.91.215 with SMTP id p206mr8550180ywb.188.1452877306438; Fri, 15 Jan 2016 09:01:46 -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 a126sm8628879ywe.11.2016.01.15.09.01.45 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Jan 2016 09:01:45 -0800 (PST) From: Jonathan Creekmore To: xen-devel@lists.xenproject.org Date: Fri, 15 Jan 2016 11:01:37 -0600 Message-Id: <1452877299-59267-4-git-send-email-jonathan.creekmore@gmail.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1452877299-59267-1-git-send-email-jonathan.creekmore@gmail.com> References: <1452877299-59267-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 v6 3/5] 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 Reviewed-by: Doug Goldstein Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Ian Campbell --- Changed since v4: * Remove defensive check for schedulers since the credit scheduler must always be present Changed since v3: * Add defensive check for schedulers in the linker 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