From patchwork Mon Aug 14 14:24:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 110027 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp4282245obb; Mon, 14 Aug 2017 07:26:55 -0700 (PDT) X-Received: by 10.36.250.67 with SMTP id v64mr6508541ith.127.1502720814936; Mon, 14 Aug 2017 07:26:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502720814; cv=none; d=google.com; s=arc-20160816; b=Ex2vvnXYLoHCSgkwLebY0p8wPkOGnWfZ05i+hhW7Jcopy0NCz36kVF3TFVLkl6A7qo hxWX97yhCeWiRfW6/2MoSC8idNU55mMabcygT+aHYeaNcCT1+Nf+ZU7pj8iMIUhAYRqN XEZxhRimmtN0f44cDB9Nb96rp4nbphdztxMJ4ciZrjfPh46kpVSzUpld5lj9/TIpJXlV OBlzVwDo38rJ1jiSqYfClfQU8Jj1LNCHb0PBCYXxK5AKTokclBva4rD7OIi8oNZaZfCa uvvdHGwdDMPgzKm4aOxqRWlszbgCMokvd6iSvVF+eTS5JtKIjSYcpl4infQyzph6yod1 S2Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:arc-authentication-results; bh=4mnDHPO8WAMaD0wTpdXXIFQYoM2kJKnTEzD9K9R9mqc=; b=hnb+yjTnTMx5wNdjRMboPyk0TN5psxTF8Pzqf20WkzFraahrBefHKJHqubQ2M7g4H+ 2OF+TT4rdegz32ZlTuTjC6qqS8lz0KiV6K+kNw4icjnMcFzhDsMhLuVFvTJc2Zid461B 3BMMDE0c2pdrqEFIcwFBR47/PFfdCajoao9NUdek+eQ11mpAeZ/sxsDoMMlnDmJsCuRv 8W6NP3czFD7kO5ehNEiryWKENY57fio6RG0sCeJDvsICWcqfup9CovWkyaWPS3vghX2e J5lr/QmDurMd7gyJwe0ATa9wZBiD1qK2rh0l0jAxuwMsKP0XxDN33viEnUOX/8LnTMyC ELBA== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id m133si5228655itg.157.2017.08.14.07.26.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Aug 2017 07:26:54 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhGIV-0000T1-6U; Mon, 14 Aug 2017 14:24:51 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhGIU-0000R3-4i for xen-devel@lists.xen.org; Mon, 14 Aug 2017 14:24:50 +0000 Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id 28/11-01732-1B2B1995; Mon, 14 Aug 2017 14:24:49 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDLMWRWlGSWpSXmKPExsVysyfVTXfDpom RBlvbTCyWfFzM4sDocXT3b6YAxijWzLyk/IoE1owDtzezFFzjrLg29RNbA+M69i5GLg4hgc2M EiemP2eGcE4zSqydsIC1i5GTg01AU+LO509MILaIgLTEtc+XGUFsZoFIicMffrCD2MICsRIXu jexdDFycLAIqEoc6rYFCfMKWElM+LgBrFVCQF5iV9tFsJGcQPHOuztZQGwhAUuJE6tns01g5F 7AyLCKUb04tagstUjXQi+pKDM9oyQ3MTNH19DAWC83tbg4MT01JzGpWC85P3cTI9C7DECwg/F Cu/MhRkkOJiVR3gSf3kghvqT8lMqMxOKM+KLSnNTiQ4zqHBwCjRPfhkux5OXnpSpJ8KZunBgp JFiUmp5akZaZAww+mEoJDh4lEd5ZIGne4oLE3OLMdIjUKUZdjlcT/n9jEgKbISXOWw5SJABSl FGaBzcCFgmXGGWlhHkZge4T4ilILcrNLEGVf8UozsGoJMxbCTKFJzOvBG7TK6AjmICO6AN5hb e4JBEhJdXAuCDP6PHr3o8vw43kDZfJrJhfPWNC1fpXHW9q+bbf15W49P7X3D5zVS3ri4L2jYa uE8z8z7m7LU2x2LD8q9aViOSwSamfDR2+Xyvg3rngMov/o4+TE1au/Sby6tXiJY+ueZuXKAto vTtw/ZDolOMHuKVO/ji17aFw+eO2Px16AfsKFz5deLWILVOJpTgj0VCLuag4EQDUgXInfwIAA A== X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-13.tower-31.messagelabs.com!1502720688!105373068!1 X-Originating-IP: [217.140.101.70] 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 5662 invoked from network); 14 Aug 2017 14:24:48 -0000 Received: from usa-sjc-mx-foss1.foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-13.tower-31.messagelabs.com with SMTP; 14 Aug 2017 14:24:48 -0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 15534199B; Mon, 14 Aug 2017 07:24:48 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 29AFD3F483; Mon, 14 Aug 2017 07:24:47 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Mon, 14 Aug 2017 15:24:03 +0100 Message-Id: <20170814142418.13267-13-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170814142418.13267-1-julien.grall@arm.com> References: <20170814142418.13267-1-julien.grall@arm.com> Cc: andre.przywara@arm.com, Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH 12/27] xen/arm: Introduce hsr_xabt to gather common bits between hsr_dabt and 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" This will allow to consolidate some part of the data abort and prefetch abort handling in a single function later on. Signed-off-by: Julien Grall Reviewed-by: Andre Przywara --- xen/include/asm-arm/processor.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/xen/include/asm-arm/processor.h b/xen/include/asm-arm/processor.h index 3ef606c554..9964348189 100644 --- a/xen/include/asm-arm/processor.h +++ b/xen/include/asm-arm/processor.h @@ -537,6 +537,19 @@ union hsr { unsigned long ec:6; /* Exception Class */ } dabt; /* HSR_EC_DATA_ABORT_* */ + /* Contain the common bits between DABT and IABT */ + struct hsr_xabt { + unsigned long fsc:6; /* Fault status code */ + unsigned long pad1:1; + unsigned long s1ptw:1; /* Stage 2 fault during stage 1 translation */ + unsigned long pad2:1; + unsigned long eat:1; /* External abort type */ + unsigned long fnv:1; /* FAR not Valid */ + unsigned long pad3:14; + unsigned long len:1; /* Instruction length */ + unsigned long ec:6; /* Exception Class */ + } xabt; + #ifdef CONFIG_ARM_64 struct hsr_brk { unsigned long comment:16; /* Comment */