From 20c5560d788f86fc94a50ea9bedb73f799cab908 Mon Sep 17 00:00:00 2001 From: kettenis Date: Fri, 5 Aug 2016 19:56:52 +0000 Subject: [PATCH] Replace inappropriate use of CP15_CNTPCT with CP_DCCIMVAC. No binary change. --- sys/arch/arm/arm/cpufunc_asm_armv7.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/arm/arm/cpufunc_asm_armv7.S b/sys/arch/arm/arm/cpufunc_asm_armv7.S index f1d43833819..c9f9fd05eea 100644 --- a/sys/arch/arm/arm/cpufunc_asm_armv7.S +++ b/sys/arch/arm/arm/cpufunc_asm_armv7.S @@ -1,4 +1,4 @@ -/* $OpenBSD: cpufunc_asm_armv7.S,v 1.11 2016/08/03 07:05:05 kettenis Exp $ */ +/* $OpenBSD: cpufunc_asm_armv7.S,v 1.12 2016/08/05 19:56:52 kettenis Exp $ */ /* * Copyright (c) 2008 Dale Rahn * @@ -161,7 +161,7 @@ ENTRY(armv7_idcache_wbinv_range) 1: mcr CP15_DCCMVAU(r0) /* Clean D cache SE with VA to PoU */ mcr CP15_ICIMVAU(r0) /* Invalidate I cache SE with VA */ - mcr CP15_CNTPCT(r0, c7), 1 /* Purge D cache SE with VA */ + mcr CP15_DCCIMVAC(r0) /* Purge D cache SE with VA */ add r0, r0, ip subs r1, r1, ip bhi 1b @@ -183,7 +183,7 @@ ENTRY(armv7_dcache_wbinv_range) 1: mcr CP15_DCCMVAU(r0) /* Clean D cache SE with VA to PoU */ mcr CP15_ICIMVAU(r0) /* Invalidate I cache SE with VA */ - mcr CP15_CNTPCT(r0, c7), 1 /* Purge D cache SE with VA */ + mcr CP15_DCCIMVAC(r0) /* Purge D cache SE with VA */ add r0, r0, ip subs r1, r1, ip bhi 1b -- 2.20.1