Message ID | 1503347275-13039-5-git-send-email-volodymyr_babchuk@epam.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <xen-devel-bounces@lists.xen.org> 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 01A3E602A0 for <patchwork-xen-devel@patchwork.kernel.org>; Mon, 21 Aug 2017 20:31:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8D2A20373 for <patchwork-xen-devel@patchwork.kernel.org>; Mon, 21 Aug 2017 20:31:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD81B27F85; Mon, 21 Aug 2017 20:31:04 +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.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID 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 4013D287F0 for <patchwork-xen-devel@patchwork.kernel.org>; Mon, 21 Aug 2017 20:31:04 +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 <xen-devel-bounces@lists.xen.org>) id 1djtJr-0003lD-0Q; Mon, 21 Aug 2017 20:29:07 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <Volodymyr_Babchuk@epam.com>) id 1djtJp-0003kj-TJ for xen-devel@lists.xen.org; Mon, 21 Aug 2017 20:29:06 +0000 Received: from [193.109.254.147] by server-11.bemta-6.messagelabs.com id F7/62-03612-1924B995; Mon, 21 Aug 2017 20:29:05 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA1VSW0gUURjuzMyuo+zkuFr+rRd0u0eamkRC0cW EMiIrfFCMnLVpd2FvzKy2vZmZpD2odMM1XMlCyNJclDSz1DIoL+WKoeWmgZiYmJdSaQ3bcdTs PH3nfJf/O/CTuHxOoiBZi5nlDIxOKfUiNLuw6LCCw8VJEfVVfnvvT5YRB9HR1gYXloCSJVqDy mhJlWi+dE7hpimp5XVjdCZqluQhT5KgL+PQmB8iYESngL0mFwlYThdiUNsSmYdIN06DZ9mU8C ylo6HS9t5DwH50AHyc7nbLvUicrkdQWjNDCHpf+gwUfzeI8Zuh8nfmYiRFx0P3dOmiF+hg6Ov MxQXsSR+Hjuc5S2PjYWa+kRD1PvC2aGgR4zRA88gILnpDoclVhAtzgS5CkDdUIhHNW6HRNbYk CoLWjruEiE/AwEuHVDT0YJDf3kCIlyse8KE9GxdaA70Tbjp8RMM3KTx1ZIg4Bibn5qSixARjZ UuDeyXQP+ySippAmC+3IZGokMB1axcmNkqF8QUXJhKfZTA3ObNkz/WAuupZVIC2WFf91brqr6 UIe4i28SyXwXJhUVHhKk6r1pj1jFYXFhmxJ1zP8jyjZnWMig9PM+rtyL0Fa9ynDj2ynWpBG0h MuY56wlqT5GtVxvOXNAyvOcel61i+BQWSpBKorkPFSXIfjlWzlgtanXuVlmkgZUo/ykugKd7E 6HmtWqTeoTAya6LmJyYnDEYDq/CnhgURLYg06YaViOWFdKAghS+F3KXkMhPL6bXm//lR5E8ip S8lFVJkWoN5ZdKouwTmLhF59bZQwsz8oxSZ6FqMX95678mGDu/ZwYohbnjgZII1y9kXUr37gT P3nh3sIbbkrqlbKC4lsbBqvq1/e3BvqOpXYvP+IznYsYnpwU05X9tUJubx2ViK/DRvpUPabBO 98jevoppO+7TGht6offHjQI9T1j02vsAEODPk7Re7NsaV3PkTPL6vHCqnGCXBa5jIHTjHM38B zvrh04sDAAA= X-Env-Sender: Volodymyr_Babchuk@epam.com X-Msg-Ref: server-5.tower-27.messagelabs.com!1503347344!107297692!1 X-Originating-IP: [104.47.2.52] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 58311 invoked from network); 21 Aug 2017 20:29:04 -0000 Received: from mail-db5eur01on0052.outbound.protection.outlook.com (HELO EUR01-DB5-obe.outbound.protection.outlook.com) (104.47.2.52) by server-5.tower-27.messagelabs.com with AES256-SHA256 encrypted SMTP; 21 Aug 2017 20:29:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=EPAM.onmicrosoft.com; s=selector1-epam-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=skSUwDYWfwvF9Zp+IbF1+n+3ZWU9jENIcZs04VJ4PQU=; b=iKpV19d3qWnLnQ9EEDZ8a8P2Nz8HZK4lVdm59n8g0Huq25oSgoVAijt7+iOvdxZaMu4iHGjG6jndTNpekltJUFvwhSNl/h3HFI7/wP4niVxBKTLsSz9yohTuG/+yAubiQoyH3p7Yak4dVCbeyYezkYbTC/ZdKYvjoUTqht8s4RA= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.58) by VI1PR0301MB2141.eurprd03.prod.outlook.com (2603:10a6:800:26::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18; Mon, 21 Aug 2017 20:29:01 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Mon, 21 Aug 2017 23:28:57 +0300 From: Volodymyr Babchuk <volodymyr_babchuk@epam.com> To: xen-devel@lists.xen.org Date: Mon, 21 Aug 2017 23:27:48 +0300 Message-Id: <1503347275-13039-5-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503347275-13039-1-git-send-email-volodymyr_babchuk@epam.com> References: <1503347275-13039-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.58] X-ClientProxiedBy: AM5PR0402CA0016.eurprd04.prod.outlook.com (2603:10a6:203:90::26) To VI1PR0301MB2141.eurprd03.prod.outlook.com (2603:10a6:800:26::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d02285e6-2588-4e42-f329-08d4e8d3428f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:VI1PR0301MB2141; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0301MB2141; 3:hrSWkwIMwCQvzNKCTHRlQm+mLXjS/frKu7Yjj9gWN9Dp246MN/eYApEs8Stu/9mhnlDo9glX4OTUJuyitHOUsKEzIfM5rlZlcRohNQSQzZnai7vi1xOho/qUylXQQ3qUr6aj4/A9/gbN5EmF3+6HRIcCfSrjk51H2OtDHxVDefgRxaHMfAwWHf/RrVXTVLMPUhATkfRaBcDHuytjXs6dxkMelwGo6samFd09d0j67y4FFRwRrLC3qs5kktxPX/4N; 25:FiI9NEXUt6COOD7EmwUdUYKgkXLJYDVjRBMdg2bPQmESK2F1Dz5X7zdCH2zIRdTne7y2c3iDa1YhBuiLrZI76DHEnxlmkn8MngK3Xwbj7rOxJtCQXni0ZCw8mn07KU71hvlbX6JiVcWS8UEPfyw3rqZVP+t5z/kUyYCU/MX/UA+GER1URVvaI+2HgDkWzqOt0gHQvRpt36JIK4Y7XiGp8TOJNum7Fr4DLFkmuyZkfYVmq46DWjWToC3+3rLbV5rwugg1JB9UedZyHWooo+YNoxZCj5PUN3Lweldd6J3Tupck6GTaXLisXsTH2rYerzZglN+NoQnHfUsIs8OyGWWMTQ==;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EbMsFwVZ1pKgNOfhtdqo8E0L/MABS1QplDmaIhTY= X-Exchange-Antispam-Report-Test: UriScan:(4114951738403); X-Microsoft-Antispam-PRVS: <VI1PR0301MB214124516BB83F8CF30FEEB5E6870@VI1PR0301MB2141.eurprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(6041248)(20161123562025)(20161123564025)(20161123558100)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR0301MB2141; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR0301MB2141; X-Forefront-PRVS: 040655413E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(189002)(199003)(53936002)(54906002)(5003940100001)(107886003)(97736004)(72206003)(2906002)(80792005)(50466002)(6666003)(50226002)(66066001)(33646002)(2361001)(48376002)(4326008)(110136004)(36756003)(6916009)(189998001)(2950100002)(2351001)(81156014)(86362001)(68736007)(8656003)(76176999)(8676002)(101416001)(5660300001)(7736002)(50986999)(122856001)(106356001)(105586002)(42186005)(8666007)(478600001)(305945005)(47776003)(7350300001)(3846002)(6116002)(81166006)(14773001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0301MB2141; H:EPUAKYIW2556.kyiv.epam.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: epam.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0301MB2141; 23:C/gqXpMA7X7WtcOMQ6WhiTg/og2f3pV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DiT80Ov/w7p6clM6y/eQAwn+Uc/evYH6XDjRPXR6HIzNdmQtNUeVtW5Ohth5kUusAG9t3SM2942himvGRnfy4f9xXHlq7Njwbix9NMkGTxTYHRVZdEsdMvee2167qU/cdxCun5kDA5076ESjFsr1GrBsWFWL69SRAjD/L0KW4tLgOinaG04gM3LXATgjSJqWBxv4Mc7wcEE6syjCE9aYA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2017 20:29:01.4024 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0301MB2141 Cc: "Edgar E . Iglesias" <edgar.iglesias@xilinx.com>, Julien Grall <julien.grall@arm.com>, Stefano Stabellini <sstabellini@kernel.org>, Volodymyr Babchuk <volodymyr_babchuk@epam.com> Subject: [Xen-devel] [PATCH v4 04/11] arm: processor.h: add definition for immediate value mask X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xen.org> List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" <xen-devel-bounces@lists.xen.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Hi Volodymyr, Title: It is a too generic, you may want to rename to: "Define HVC/SMC immediate mask" On 21/08/17 21:27, Volodymyr Babchuk wrote: > This patch adds definition HSR_XXC_IMM_MASK. It can be used to extract s/adds definition/define/ > immediate value for trapped HVC32, HVC64, SMC64, SVC32, SVC64 instructions, > as described at ARM ARM (ARM DDI 0487B.a pages D7-2270, D7-2272). s/at/in the/ > > Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com> > --- > xen/include/asm-arm/processor.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/xen/include/asm-arm/processor.h b/xen/include/asm-arm/processor.h > index 51ce802..89752a7 100644 > --- a/xen/include/asm-arm/processor.h > +++ b/xen/include/asm-arm/processor.h > @@ -580,6 +580,9 @@ union hsr { > HSR_SYSREG_CRN_MASK|HSR_SYSREG_CRM_MASK|\ > HSR_SYSREG_OP2_MASK) > > +/* HSR.EC == HSR_{HVC32, HVC64, SMC64, SVC32, SVC64} */ > +#define HSR_XXC_IMM_MASK (0xffff) > + > /* Physical Address Register */ > #define PAR_F (_AC(1,U)<<0) > > Cheers,
diff --git a/xen/include/asm-arm/processor.h b/xen/include/asm-arm/processor.h index 51ce802..89752a7 100644 --- a/xen/include/asm-arm/processor.h +++ b/xen/include/asm-arm/processor.h @@ -580,6 +580,9 @@ union hsr { HSR_SYSREG_CRN_MASK|HSR_SYSREG_CRM_MASK|\ HSR_SYSREG_OP2_MASK) +/* HSR.EC == HSR_{HVC32, HVC64, SMC64, SVC32, SVC64} */ +#define HSR_XXC_IMM_MASK (0xffff) + /* Physical Address Register */ #define PAR_F (_AC(1,U)<<0)
This patch adds definition HSR_XXC_IMM_MASK. It can be used to extract immediate value for trapped HVC32, HVC64, SMC64, SVC32, SVC64 instructions, as described at ARM ARM (ARM DDI 0487B.a pages D7-2270, D7-2272). Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com> --- xen/include/asm-arm/processor.h | 3 +++ 1 file changed, 3 insertions(+)