From patchwork Thu Aug 31 20:09:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 9932791 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 0533F60362 for ; Thu, 31 Aug 2017 20:12:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE7F21FEB1 for ; Thu, 31 Aug 2017 20:12:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E2F291FF1D; Thu, 31 Aug 2017 20:12:30 +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 13A541FF13 for ; Thu, 31 Aug 2017 20:12:28 +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 1dnVn8-0000Bm-1p; Thu, 31 Aug 2017 20:10:18 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnVn7-0000BF-FY for xen-devel@lists.xen.org; Thu, 31 Aug 2017 20:10:17 +0000 Received: from [85.158.139.211] by server-3.bemta-5.messagelabs.com id 2A/CD-02044-82D68A95; Thu, 31 Aug 2017 20:10:16 +0000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g-Ref: server-13.tower-206.messagelabs.com!1504210215!94315105!1 X-Originating-IP: [104.47.0.64] 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 33193 invoked from network); 31 Aug 2017 20:10:15 -0000 Received: from mail-he1eur01on0064.outbound.protection.outlook.com (HELO EUR01-HE1-obe.outbound.protection.outlook.com) (104.47.0.64) by server-13.tower-206.messagelabs.com with AES256-SHA256 encrypted SMTP; 31 Aug 2017 20:10:15 -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=1bC0jusgIYCWN6F+R6PDt30LWooFKccIyoAcWJxDdF4=; b=LbifTuEF5fj09tjuwT5sX+MwnVZh23jtzevvoxPDBN3MoBFIzTYhYcrT6go0jeOhGnVEb3q1nCSeV+tgL978KEMFGwRCwrF89HhQvq/oGcbQJ4/swEsd4aK2C/0orrUTGWuLpbxs+cg3X7jG+Ycf8sZguzKzN+cb8Uv1gi40P/E= Received: from EPUAKYIW2556.kyiv.epam.com (85.223.209.51) by AM4PR0301MB2132.eurprd03.prod.outlook.com (2603:10a6:200:4d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Thu, 31 Aug 2017 20:10:12 +0000 Received: by EPUAKYIW2556.kyiv.epam.com (sSMTP sendmail emulation); Thu, 31 Aug 2017 23:10:07 +0300 From: Volodymyr Babchuk To: xen-devel@lists.xen.org Date: Thu, 31 Aug 2017 23:09:26 +0300 Message-Id: <1504210172-27234-5-git-send-email-volodymyr_babchuk@epam.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504210172-27234-1-git-send-email-volodymyr_babchuk@epam.com> References: <1504210172-27234-1-git-send-email-volodymyr_babchuk@epam.com> MIME-Version: 1.0 X-Originating-IP: [85.223.209.51] X-ClientProxiedBy: DB6PR0801CA0065.eurprd08.prod.outlook.com (2603:10a6:4:2b::33) To AM4PR0301MB2132.eurprd03.prod.outlook.com (2603:10a6:200:4d::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 78fde90c-9ccf-4673-deaa-08d4f0ac4a26 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:AM4PR0301MB2132; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0301MB2132; 3:UkgRsDMjaVb+vglhygOpPZRgu+BypuMpuXCqR/fpevEhWgPFx/nanCFnP5D4JK2oird8CL+XvJkqBSHxji/yui0CcoddHruSHarcVsT8JgAHEquz35ee+5F3uJZQ2QLtiTFYNqboDRo2+210MogcqJ4rUoaPOJsm7NjB7n/f688hAw6B00Jhmo4+pfXiXb/D1SLDdY6qGTL+zIhvuNfkzb9mz39+UQ12xn6RDj85XVmIDUrSQBEFTzxYGl5+3fDC; 25:/axDFy6+4cu0O1VCPFkTm3nCPLDJg5UKdcNjv/WkG6njsBBsV7/lIwaOCUi3SOuQb+2GwNG9/iDViXeimEkqpZ/OvmcPPKq35KtonLEZQccGNcG9OOc+vyr/rpntEHgQqSkFiCGG5g7g7Its3sZYAdvc52fORaNC5aSO4VtyKgZlqxrA94QY2KZsiHUWRfngydgghqlMD83iBFfh52RjNcf6Lx1EqW6zhSXxZljWrG/SnHhEnW6/qtQC2+Hv4b4Juh0uf6F6wGoWzeKxKFNhllG6dFiQmgLEUkCpuDBzK4GpURWhJvG+PhXrU78bx1Ep6xFfo7gdqDtxYv6tslBr+g==; 31:/5ufpJWihtMTdwzojWq2OstgCAnZZg+u2AJpBw8amXbOCWz7cOaLFl3upX7dVDONBf98tj+09x0DQH22HvNXMeoGiXupx81cvcGaQ9sVgI5lG+d/x9JLJ3WaYvnRmg3tZCAWweGY0alUiLkuuU7LLbEdwL2D8TqoWeeheoNBeg9f0GcvK4UP0VqeArmFBUMJ5P2/Lla9KyK880e6sh5twRqgDYkI/FKuMsJmQUlvrMk= X-MS-TrafficTypeDiagnostic: AM4PR0301MB2132: X-Microsoft-Exchange-Diagnostics: 1; AM4PR0301MB2132; 20:hSd8piunofLcEkE+Uvub/PHw2XWshM5pOR2NAUFpyogddHVVP7Omi/6KWupz3x+bm8DBKGwFbNSxwE1JC8esmJORhXfcIma9ekCLD1mlDNg9tFQUkd5HJ9VqKdXyVkod7klI8vCI6jhjMDOGbqK5b0uCHps9Rc+/7vVyShCgJPD/hCuhUKOrZZg0hGI+S3G/EhJ/NinV8k3fayogYt+w7+Hh85C2Wyp8twLOLyQ4O3DXNThdCN4gMsOSdAtlbcRKlC3mvDQxbCxYd1NyYHBHRQ6vfqPyTbMj6VRW/WNmvlRTpz09C999iDTK0EF1Q7hA1/HvE0LwbVLhdZCYPeS3fER2xGd9aIM3kOaf4R1BpD1139M8bxVXpbANnO24vVx5ILi9n3yjggRQrGf4cWHhnIzrO0iEYsXykd9vkOQFSEXY57ySgwwIujp3zeJ1ZLG7mh54vP20vFAG/OquOELoRmmFo3fPr+SnV+HVcOyTPQNaYPT4++jppsxPGgzpCIYa; 4:EYWNdFt3oeWBXV8+MzMYq2nqnCakvBp61Rj9jG4I3DjL2ut2lRm78sSVYMSMUHUb0qoCJ52oYLz+SJYW7k5EZRgkQobc6WlB+KwvGqX5KhraUI0Y43uicSBvkFWyjoX36sVMAtwa1xFVw3aWctGco6CXYPsefZ/5HyyuhkcwbL073WDf9S1ZSDAjocOsqMrb062OUPdj1HaHZGmhBaNSwxwoJIQDxpflbPg44s6Tw6hFFx+ZwaaHxFqtRH73qDLPmPt24rbm1RI63wpQ7KpXq5tEL5naSFS/AU+I+ub6xTQ= X-Exchange-Antispam-Report-Test: UriScan:(4114951738403); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM4PR0301MB2132; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM4PR0301MB2132; X-Forefront-PRVS: 04163EF38A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(199003)(189002)(122856001)(7736002)(5003940100001)(68736007)(305945005)(101416001)(2361001)(106356001)(33646002)(105586002)(2351001)(50986999)(42186005)(76176999)(48376002)(478600001)(5660300001)(86362001)(6916009)(2950100002)(6666003)(4326008)(8656003)(7350300001)(110136004)(81166006)(66066001)(53936002)(8676002)(81156014)(54906002)(50226002)(189998001)(47776003)(72206003)(36756003)(50466002)(2906002)(6116002)(8666007)(80792005)(97736004)(3846002)(14773001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0301MB2132; 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; AM4PR0301MB2132; 23:y3L670GhfPQqen3s3egcYUdiSbhP7bItUsZGFC9?= =?us-ascii?Q?cDgl1NsMd5YahwvVYClY9crIy9ukBlj4nLj1J/cOeY2a67NCBSmXkOVB0aIX?= =?us-ascii?Q?VLSkcy0y4RYSBx5dUVQGAR0TYdVzcc9waulp3E3Ys9hEnaAh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+XYA8E+a3EnIC4r8vMRIZ1xLfrPuZSxnM9IRacPivHbGIKg3t5NsxXeA5frDgWeNfU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2017 20:10:12.8935 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0301MB2132 Cc: "Edgar E . Iglesias" , Julien Grall , Stefano Stabellini , Volodymyr Babchuk Subject: [Xen-devel] [PATCH v5 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 define 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 --- * spelling fixes --- 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)