From: Ian Campbell Subject: [PATCH v4 05/15] xen: arm: Use ARMv8 names for CNTHCTL_EL2 bits Date: Fri, 27 Mar 2015 14:33:34 +0000 Message-ID: <1427466824-31967-5-git-send-email-ian.campbell@citrix.com> References: <1427466798.13935.158.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1427466798.13935.158.camel@citrix.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 Rather than using the v8 register names and the v7 bit names, which makes things needlessly difficult when reading. Signed-off-by: Ian Campbell Reviewed-by: Julien Grall --- v3: New patch. --- xen/arch/arm/time.c | 2 +- xen/include/asm-arm/processor.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/arm/time.c b/xen/arch/arm/time.c index 352e25e..ce6d3fd 100644 --- a/xen/arch/arm/time.c +++ b/xen/arch/arm/time.c @@ -230,7 +230,7 @@ void __cpuinit init_timer_interrupt(void) /* Sensible defaults */ WRITE_SYSREG64(0, CNTVOFF_EL2); /* No VM-specific offset */ /* Do not let the VMs program the physical timer, only read the physical counter */ - WRITE_SYSREG32(CNTHCTL_PA, CNTHCTL_EL2); + WRITE_SYSREG32(CNTHCTL_EL2_EL1PCTEN, CNTHCTL_EL2); WRITE_SYSREG32(0, CNTP_CTL_EL0); /* Physical timer disabled */ WRITE_SYSREG32(0, CNTHP_CTL_EL2); /* Hypervisor's timer disabled */ isb(); diff --git a/xen/include/asm-arm/processor.h b/xen/include/asm-arm/processor.h index b7e88a6..5ccf61f 100644 --- a/xen/include/asm-arm/processor.h +++ b/xen/include/asm-arm/processor.h @@ -555,8 +555,8 @@ union hsr { #define FSC_LL_MASK (_AC(0x03,U)<<0) /* Time counter hypervisor control register */ -#define CNTHCTL_PA (1u<<0) /* Kernel/user access to physical counter */ -#define CNTHCTL_TA (1u<<1) /* Kernel/user access to CNTP timer */ +#define CNTHCTL_EL2_EL1PCTEN (1u<<0) /* Kernel/user access to physical counter */ +#define CNTHCTL_EL2_EL1PCEN (1u<<1) /* Kernel/user access to CNTP timer regs */ /* Time counter kernel control register */ #define CNTKCTL_EL1_EL0PCTEN (1u<<0) /* Expose phys counters to EL0 */ -- 1.7.10.4