From patchwork Thu Sep 21 19:59:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 9964777 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 5B51A6020C for ; Thu, 21 Sep 2017 20:02:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C9B8205A4 for ; Thu, 21 Sep 2017 20:02:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 416C1293F0; Thu, 21 Sep 2017 20:02:59 +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 D80E1296AE for ; Thu, 21 Sep 2017 20:02:58 +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 1dv7eU-0007UR-CT; Thu, 21 Sep 2017 20:00:50 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dv7eT-0007Tm-CC for xen-devel@lists.xen.org; Thu, 21 Sep 2017 20:00:49 +0000 Received: from [193.109.254.147] by server-3.bemta-6.messagelabs.com id 13/A3-03093-07A14C95; Thu, 21 Sep 2017 20:00:48 +0000 X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ref: server-10.tower-27.messagelabs.com!1506024047!94743893!1 X-Originating-IP: [40.107.2.89] 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 10273 invoked from network); 21 Sep 2017 20:00:48 -0000 Received: from mail-eopbgr20089.outbound.protection.outlook.com (HELO EUR02-VE1-obe.outbound.protection.outlook.com) (40.107.2.89) by server-10.tower-27.messagelabs.com with AES256-SHA256 encrypted SMTP; 21 Sep 2017 20:00:48 -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=201yXLdfvYcyZ2tDNfn5VE2fXP2+MtVOdn8xxuh7qL0=; b=DjAcRSTGz73JOrcKmRBShpwUaSdJP7QJU1JJGR4TZOVNbHqDws7CQRnlqi7rBq/TdHnkAcE7tXtYlPa+UUUlbkMh5scGVC0KjQRVCoS5B1J0HCHi9Crj/9iY47hGf8S8H337EK0qMyDGOAsuzd65uHwUxkz8EopJCNI/QK73z0o= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.56) by HE1PR0301MB2138.eurprd03.prod.outlook.com (2603:10a6:3:21::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 21 Sep 2017 20:00:43 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Thu, 21 Sep 2017 23:00:39 +0300 From: Volodymyr Babchuk To: xen-devel@lists.xen.org Date: Thu, 21 Sep 2017 22:59:58 +0300 Message-Id: <1506024004-8615-5-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506024004-8615-1-git-send-email-volodymyr_babchuk@epam.com> References: <1506024004-8615-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.56] X-ClientProxiedBy: HE1PR09CA0084.eurprd09.prod.outlook.com (2603:10a6:7:3d::28) To HE1PR0301MB2138.eurprd03.prod.outlook.com (2603:10a6:3:21::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1e1d4be1-cd64-48b9-6fd6-08d5012b7173 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:HE1PR0301MB2138; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0301MB2138; 3:QGFGdV0gu5ZlQ/FZvLjb3w/gnInYiMoLUMU0OaXUSuBgLSydjP7Vz02j3/rQiOR8guuYcdBUdlUJs/iybp0JrRzPfBQSJAbHPxuX76AQjnf7OfDJK3nbeUzwciVOZtMoTojq15/cZowg4yQPjN+wstb8m9LQQ4tGIgHD13M8GJiai2BeDwGKTpo1Uh9arDCxCSm6C4AFY0Q2Qkn+zmCEwZP2e2Ha6XRW1aowlN9EZ3tu5lAZ7y+WzRZrq/NgrwuA; 25:vn0ejJV+lBkE4rsvnY535TnLVuC6GOG5x9yXHfjW5rfniTVDrBpWaTflsEhjKxHHBLNsu5RBHCbaJ5m32A3LF1DqpjZvl+3P90iXZovmCgHbTR/GGYxSZb1VE5LAQwEAIvWM1G+pNSEe54RG+aPnOUFrqZSj+hBMiEEeA6ZzWm0MrLKE6OaBHgD6DorlRDiLWXvRmlMqXb1+tp6EcdqmNhst/mwC4aMbQwqfQ99rDsoaNYH6cGOijJE7ZnccXK4Ion4wL/LVoGmSBDvy9SSY7rUjHrunKEkfcjb0xjUbsA/721TTAhYWZbHz2x4cBA9Kxj5itqkk260HVpORfR/a6g==; 31:3Nwd9RmSH+12mv24ZjtM76g6DNrZg+sN27kkCODVez9fc+1+LA2Pq4F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g1kanPPDw5GSs8+uRm7RN91VB07g63/b/Q5KasiNh71Q== X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(4114951738403); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6041248)(20161123564025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0301MB2138; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0301MB2138; X-Forefront-PRVS: 04371797A5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(199003)(189002)(2351001)(106356001)(2906002)(105586002)(33646002)(8656003)(54906003)(76176999)(7736002)(5660300001)(8666007)(316002)(16586007)(2361001)(50986999)(305945005)(47776003)(5003940100001)(42186006)(66066001)(101416001)(50466002)(80792005)(48376002)(86362001)(53936002)(36756003)(6116002)(68736007)(3846002)(122856001)(50226002)(8936002)(97736004)(81166006)(8676002)(189998001)(81156014)(478600001)(72206003)(4326008)(6916009)(2950100002)(6666003)(14773001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0301MB2138; H:EPUAKYIW2556.kyiv.epam.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; HE1PR0301MB2138; 23:7IkBtohk8R8OZZHpkPC/TEHtk5m5L1mH9Rp8w3j?= =?us-ascii?Q?lscqNGkZbz5KMZiIcgOB8GJfLrIhFcayTblf7fg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baU/6aVQgyhd3JdG0Pge4cHA/oDjfmeL4mWuS03JDXw9Okzoj/s6sa4KaCXo2mzHOpqpgbMpTsYL6OFCXR3aY+Jx5X1cHnD4Q0SXTgs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2017 20:00:43.6874 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0301MB2138 Cc: "Edgar E . Iglesias" , Julien Grall , Stefano Stabellini , Volodymyr Babchuk Subject: [Xen-devel] [PATCH v6 04/10] 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 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch defines HSR_XXC_IMM_MASK. It can be used to extract immediate value for trapped HVC32, HVC64, SMC64, SVC32, SVC64 instructions, as described in the ARM ARM (ARM DDI 0487B.a pages D7-2270, D7-2272). Signed-off-by: Volodymyr Babchuk Acked-by: Julien Grall --- 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 cd45e5f..dc6ab62 100644 --- a/xen/include/asm-arm/processor.h +++ b/xen/include/asm-arm/processor.h @@ -658,6 +658,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)