From: Ian Campbell Subject: [PATCH v2 10/17] xen: arm64: disable alignment traps Date: Wed, 26 Mar 2014 13:38:45 +0000 Message-ID: <1395841133-2223-10-git-send-email-ian.campbell@citrix.com> References: <1395841009.12547.11.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1395841009.12547.11.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: julien.grall@linaro.org, tim@xen.org, Ian Campbell , stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org 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 outweigh the downsides. Signed-off-by: Ian Campbell Acked-by: Julien Grall --- v2: fix typo in commit message and correct comment which refers to alignment trapping status. --- xen/arch/arm/arm64/head.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/arm64/head.S b/xen/arch/arm/arm64/head.S index 9547ef5..d3e773d 100644 --- a/xen/arch/arm/arm64/head.S +++ b/xen/arch/arm/arm64/head.S @@ -239,9 +239,9 @@ skip_bss: * Write-implies-XN disabled (for now), * D-cache disabled (for now), * I-cache enabled, - * Alignment checking enabled, + * Alignment checking disabled, * 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 -- 1.7.10.4