From patchwork Thu Mar 20 15:45:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 26718 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 71B1520143 for ; Thu, 20 Mar 2014 15:47:44 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id n16sf4157873oag.1 for ; Thu, 20 Mar 2014 08:47:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=wtRtuq8taKp07GH4XCWzCXSwYNtKv8HT3MAGgNeVZeY=; b=VrE/5jNLp6uo5oq4uFtE32pUqbivoMYa3O8gNrtWYObr9HyyKNqQ6qyGBaS0/Sw6Wp NbpsbRZ0jlmSUDyOz+JM2mFlIhMrKaysmi6bzb1kS49QOIO+EkAk/GVGXWjPKONjbArU RSn1Jb3+OXd38bOxC2mGVvAQHLJQj0aNzYI5BOK5dMvfwdKvDFViWC47/I9eb5NY/52x MwxICPdeXuR7jNSGGfbqDTyl8y7Fn7tXRuhe1LMCtPb6RiGvtr4kXrigxsMsgQx8gJNi EtNrnQ+xNcDY1iUqdi13LmL7XlKPgYN0qpZLIvGMpcSHW7EQKeANH6F5jn9U3pTCTgyd DtOg== X-Gm-Message-State: ALoCoQlorueC6qW69hbwo2VuIdrQ//KOwDAQI84tJ/2XIsT/zhj6Ff6N30mmhekGovGEA3YYGEJ0 X-Received: by 10.183.3.36 with SMTP id bt4mr3881485obd.29.1395330463981; Thu, 20 Mar 2014 08:47:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.66 with SMTP id h60ls297939qge.54.gmail; Thu, 20 Mar 2014 08:47:43 -0700 (PDT) X-Received: by 10.220.10.2 with SMTP id n2mr5472801vcn.26.1395330463890; Thu, 20 Mar 2014 08:47:43 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id w1si510073vet.119.2014.03.20.08.47.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Mar 2014 08:47:43 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id pa12so1159837veb.15 for ; Thu, 20 Mar 2014 08:47:43 -0700 (PDT) X-Received: by 10.220.139.198 with SMTP id f6mr889649vcu.47.1395330463800; Thu, 20 Mar 2014 08:47:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp398562vck; Thu, 20 Mar 2014 08:47:43 -0700 (PDT) X-Received: by 10.58.150.68 with SMTP id ug4mr1041430veb.50.1395330461138; Thu, 20 Mar 2014 08:47:41 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id h18si506749vco.88.2014.03.20.08.47.40 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 20 Mar 2014 08:47:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WQfAe-0004EC-OH; Thu, 20 Mar 2014 15:46:16 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WQfAc-0004B1-CX for xen-devel@lists.xen.org; Thu, 20 Mar 2014 15:46:14 +0000 Received: from [85.158.137.68:24879] by server-17.bemta-3.messagelabs.com id DE/03-22741-54D0B235; Thu, 20 Mar 2014 15:46:13 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-5.tower-31.messagelabs.com!1395330370!1925614!2 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 20846 invoked from network); 20 Mar 2014 15:46:13 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-5.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 20 Mar 2014 15:46:13 -0000 X-IronPort-AV: E=Sophos;i="4.97,695,1389744000"; d="scan'208";a="111935220" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 20 Mar 2014 15:46:11 +0000 Received: from norwich.cam.xci-test.com (10.80.248.129) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.2.342.4; Thu, 20 Mar 2014 11:46:06 -0400 Received: from drall.uk.xensource.com ([10.80.16.71] helo=drall.uk.xensource.com.) by norwich.cam.xci-test.com with esmtp (Exim 4.72) (envelope-from ) id 1WQfAU-0006O2-Iz; Thu, 20 Mar 2014 15:46:06 +0000 From: Ian Campbell To: Date: Thu, 20 Mar 2014 15:45:58 +0000 Message-ID: <1395330365-9901-10-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1395330336.3104.12.camel@kazak.uk.xensource.com> References: <1395330336.3104.12.camel@kazak.uk.xensource.com> MIME-Version: 1.0 X-DLP: MIA2 Cc: julien.grall@linaro.org, tim@xen.org, Ian Campbell , stefano.stabellini@eu.citrix.com Subject: [Xen-devel] [PATCH 10/17] xen: arm64: disable alignment traps X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: The mem* primitives which I am about to import from Linux in a subsequent patch rely on the hardware handling misalignment. The benefits of an optimised memcpy etc oughtweigh the downsides. Signed-off-by: Ian Campbell Acked-by: Julien Grall --- xen/arch/arm/arm64/head.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/arm64/head.S b/xen/arch/arm/arm64/head.S index 9547ef5..22d0030 100644 --- a/xen/arch/arm/arm64/head.S +++ b/xen/arch/arm/arm64/head.S @@ -241,7 +241,7 @@ skip_bss: * I-cache enabled, * Alignment checking enabled, * MMU translation disabled (for now). */ - ldr x0, =(HSCTLR_BASE|SCTLR_A) + ldr x0, =(HSCTLR_BASE) msr SCTLR_EL2, x0 /* Rebuild the boot pagetable's first-level entries. The structure