From patchwork Thu Aug 25 13:37:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Rzeszutek Wilk X-Patchwork-Id: 9299353 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8634760459 for ; Thu, 25 Aug 2016 13:40:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7843429332 for ; Thu, 25 Aug 2016 13:40:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6C9FC29337; Thu, 25 Aug 2016 13:40:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6019229332 for ; Thu, 25 Aug 2016 13:40:13 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcurY-0001at-Fh; Thu, 25 Aug 2016 13:38:32 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcurX-0001Za-JV for xen-devel@lists.xenproject.org; Thu, 25 Aug 2016 13:38:31 +0000 Received: from [193.109.254.147] by server-10.bemta-6.messagelabs.com id 64/CF-27438-6D4FEB75; Thu, 25 Aug 2016 13:38:30 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnkeJIrShJLcpLzFFi42KZM10+UPfal33 hBo0dahbft0xmcmD0OPzhCksAYxRrZl5SfkUCa0bns2+MBavZK7a/+83WwDiTrYuRi0NIYCKT RP+8qywQzl9GiU/9B5ggnI2MEgcX97JCONMYJf63XAHKcHCwCZhIvFnlCBIXEehjlDh8dBNzF yMnB7OAkcTkxncsILawgLvEgXerwOpZBFQlfkw1AgnzCrhJdK1ZyQISlhCQl3h2ux4kzAlU/b thMxuILQRU8v1SB9gUCQFDic8blzJPYORbwMiwilGjOLWoLLVI19hIL6koMz2jJDcxM0fX0MB MLze1uDgxPTUnMalYLzk/dxMjMFAYgGAH4+l1gYcYJTmYlER5tVfsCxfiS8pPqcxILM6ILyrN SS0+xCjDwaEkwav6GSgnWJSanlqRlpkDDFmYtAQHj5IIrxlImre4IDG3ODMdInWKUZdjwY/ba 5mEWPLy81KlxHmrQIoEQIoySvPgRsDi5xKjrJQwLyPQUUI8BalFuZklqPKvGMU5GJWEeatBpv Bk5pXAbXoFdAQT0BEt93eDHFGSiJCSamDc3LK6XEz23hF5hoKHskxBPbP/XNtnpvlf+JZoUR9 Xx4XOXUsnS1WoHyhVkOIzrg80fCO9qvLw4ap/362++Pt5c0xkfrpSLywmVnhXskemw953Lfz2 /ovv75Z33bi3Zd2ur6s8QtX2/5aZ3xu6+0bGNd+uKeV6TEuTDldVzJfekS9ypWzil3tKLMUZi YZazEXFiQAGij59mgIAAA== X-Env-Sender: konrad.wilk@oracle.com X-Msg-Ref: server-5.tower-27.messagelabs.com!1472132308!55850857!1 X-Originating-IP: [156.151.31.81] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTU2LjE1MS4zMS44MSA9PiAyODgzMzk=\n X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 10271 invoked from network); 25 Aug 2016 13:38:30 -0000 Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by server-5.tower-27.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 25 Aug 2016 13:38:30 -0000 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u7PDbosW030533 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Aug 2016 13:37:50 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.13.8) with ESMTP id u7PDbnGU010186 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Aug 2016 13:37:50 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u7PDbnOU020695; Thu, 25 Aug 2016 13:37:49 GMT Received: from localhost.event.rightround.com (/75.98.193.200) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 25 Aug 2016 06:37:49 -0700 From: Konrad Rzeszutek Wilk To: xen-devel@lists.xenproject.org, konrad@kernel.org, ross.lagerwall@citrix.com, sstabellini@kernel.org, julien.grall@arm.com Date: Thu, 25 Aug 2016 09:37:21 -0400 Message-Id: <1472132255-23470-7-git-send-email-konrad.wilk@oracle.com> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1472132255-23470-1-git-send-email-konrad.wilk@oracle.com> References: <1472132255-23470-1-git-send-email-konrad.wilk@oracle.com> X-Source-IP: userv0022.oracle.com [156.151.31.74] Cc: Konrad Rzeszutek Wilk Subject: [Xen-devel] [PATCH v2 06/20] arm/alternative: Use _start instead of _stext X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP The code uses a mix of _start, _stext, and _etext. Lets unify it and use the same 'style'. Signed-off-by: Konrad Rzeszutek Wilk --- Cc: Julien Grall Cc: Stefano Stabellini v2: First submission --- xen/arch/arm/alternative.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/alternative.c b/xen/arch/arm/alternative.c index 90a857a..ed84170 100644 --- a/xen/arch/arm/alternative.c +++ b/xen/arch/arm/alternative.c @@ -95,7 +95,7 @@ static int __apply_alternatives(const struct alt_region *region) const struct alt_instr *alt; const u32 *origptr, *replptr; u32 *writeptr, *writemap = NULL; - mfn_t text_mfn = _mfn(virt_to_mfn(_stext)); + mfn_t text_mfn = _mfn(virt_to_mfn(_start)); unsigned int text_order = get_order_from_bytes(_end - _start); if ( region->begin >= __alt_instructions &&