From 58bbe7d71239db508c30099bf7b6db7c458f3336 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Wed, 26 Mar 2014 13:38:45 +0000 Subject: [PATCH] xen: arm64: disable alignment traps 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 Acked-by: Tim Deegan --- 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 3077f1bb78..2a13527459 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 -- 2.39.5