diff options
author | 2011-11-06 13:47:57 +0000 | |
---|---|---|
committer | 2011-11-06 13:47:57 +0000 | |
commit | 405ec0cb0763a6ccda709ff2110e85f834d97c00 (patch) | |
tree | 573ec87bc526285334f3db2b781928d639cef21c | |
parent | Build boot(8) for i386 in the same manner that we build boot(8) for amd64 - (diff) | |
download | wireguard-openbsd-405ec0cb0763a6ccda709ff2110e85f834d97c00.tar.xz wireguard-openbsd-405ec0cb0763a6ccda709ff2110e85f834d97c00.zip |
Correctly report WB and WT cache modes on v7 (they were swapped). ok uwe@
-rw-r--r-- | sys/arch/arm/arm/cpufunc.c | 9 |
1 files 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 */ |