From ec3f5ad81ce1bb91dbafa91e524301d7791672ce Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sun, 6 Nov 2011 13:47:58 +0000 Subject: Correctly report WB and WT cache modes on v7 (they were swapped). ok uwe@ --- sys/arch/arm/arm/cpufunc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/arch/arm/arm/cpufunc.c b/sys/arch/arm/arm/cpufunc.c index ce783495fa5..fd1dc115d31 100644 --- a/sys/arch/arm/arm/cpufunc.c +++ b/sys/arch/arm/arm/cpufunc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpufunc.c,v 1.14 2011/09/20 22:02:10 miod Exp $ */ +/* $OpenBSD: cpufunc.c,v 1.15 2011/11/06 13:47:57 miod Exp $ */ /* $NetBSD: cpufunc.c,v 1.65 2003/11/05 12:53:15 scw Exp $ */ /* @@ -761,11 +761,12 @@ arm_get_cachetype_cp15v7(void) arm_pcache_type = 0; break; case 0x40000000: - arm_pcache_type = CPU_CT_CTYPE_WT; - break; - case 0x80000000: case 0xc0000000: arm_pcache_type = CPU_CT_CTYPE_WB1; + break; + case 0x80000000: + arm_pcache_type = CPU_CT_CTYPE_WT; + break; } /* icache L1 */ -- cgit v1.2.3