From patchwork Thu Jan 14 14:49:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Creekmore X-Patchwork-Id: 8032491 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 741E29F6FA for ; Thu, 14 Jan 2016 14:52:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9702C20411 for ; Thu, 14 Jan 2016 14:52:31 +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 ACA5520295 for ; Thu, 14 Jan 2016 14:52:30 +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 1aJjDM-0002Mq-Is; Thu, 14 Jan 2016 14:49:28 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aJjDK-0002Lu-Uo for xen-devel@lists.xenproject.org; Thu, 14 Jan 2016 14:49:27 +0000 Received: from [193.109.254.147] by server-5.bemta-14.messagelabs.com id C7/C3-23366-675B7965; Thu, 14 Jan 2016 14:49:26 +0000 X-Env-Sender: jonathan.creekmore@gmail.com X-Msg-Ref: server-2.tower-27.messagelabs.com!1452782964!14897506!1 X-Originating-IP: [209.85.220.196] 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 61089 invoked from network); 14 Jan 2016 14:49:25 -0000 Received: from mail-qk0-f196.google.com (HELO mail-qk0-f196.google.com) (209.85.220.196) by server-2.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 14 Jan 2016 14:49:25 -0000 Received: by mail-qk0-f196.google.com with SMTP id e124so14705658qkc.3 for ; Thu, 14 Jan 2016 06:49:24 -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=er8lHyLkN9ovJWhoWeBx8rbClxm+yvP905uojom4D9wYcbhWwGeAMcn/50/xTmiSFp pPADSomW4cPGEswXRPafOaqV10h/engBJ29Pqtwpj+fflZzSWvTa5VSbylD8wi8hd60K V/LKZT4POJybZcX3WUQ/Jul3YaYwtwUCFukWyhvAuKN4aRgAefHbHzBmyEPhH9VF02fI u6RskZortjpDg/xCi5gl9tYPndmiJ7V+DLdss7bnZx2hujw+lniltbaEHl0aIZBWLdtt IFPVQqljCImDiWFkKU5OVDL4+D7EOUPy7sT6DydGjAo2zCAj3NWRicPLRFtS8+71xQg7 R8zA== 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=hSXc2KU9JNwcZmggbp13lLY7c7yMR3BdWUOlO7Nm4gHd9vyJ/R0bGxp3RvHlatZnX7 poc+TqP6iuW6LXGlqjdyTWqAxew23/hapXAHXb5xT4AQjEKMj6CuzwNN/g5Su/JpoL8q n6B8SCdybR48KTz0FURoVvaoVlEbCJ4n0zi/DPo3N1YBLQmou9LC9MJptx0nKCnzw8Oy uPWmUDTYkvzskNENW6WIhrMt7pLSK1U7zzpzEr2xWNUe09XsouuhcM4xb8JW9ad/tKj2 MsyucuIO2wr5uYDdEsCdyNufOAUJKl+khTQr7K5CrcltvTckFQeNLEt6Z6W0HyO5paCd r38g== X-Gm-Message-State: ALoCoQmNIoe7TP9OqLaJsPBH84gU9coA2POfSTp9jfk5ZfxxCqvdwYOCn0jZusYikpEt7siavbOL2nz/RzubZxaICuLK83vxXw== X-Received: by 10.13.206.2 with SMTP id q2mr3326284ywd.76.1452782963951; Thu, 14 Jan 2016 06:49:23 -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 i81sm4633114ywe.28.2016.01.14.06.49.23 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jan 2016 06:49:23 -0800 (PST) From: Jonathan Creekmore To: xen-devel@lists.xenproject.org Date: Thu, 14 Jan 2016 08:49:12 -0600 Message-Id: <1452782954-56016-4-git-send-email-jonathan.creekmore@gmail.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1452782954-56016-1-git-send-email-jonathan.creekmore@gmail.com> References: <1452782954-56016-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 v5 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 --- 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