From 225c89d986fb39a0efa4ebac1c447213bcbefb88 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 1 Jun 2006 06:25:52 +0000 Subject: Better test for cacheability of the previous mapping in pmap_cache_ctrl() --- sys/arch/m88k/m88k/pmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/arch/m88k/m88k/pmap.c b/sys/arch/m88k/m88k/pmap.c index 2614a75ba6f..ba97c306670 100644 --- a/sys/arch/m88k/m88k/pmap.c +++ b/sys/arch/m88k/m88k/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.26 2006/05/25 21:37:45 miod Exp $ */ +/* $OpenBSD: pmap.c,v 1.27 2006/06/01 06:25:51 miod Exp $ */ /* * Copyright (c) 2001-2004, Miodrag Vallat * Copyright (c) 1998-2001 Steve Murphree, Jr. @@ -488,7 +488,7 @@ pmap_cache_ctrl(pmap_t pmap, vaddr_t s, vaddr_t e, u_int mode) * Data cache should be copied back and invalidated if * the old mapping was cached. */ - if ((opte & CACHE_MASK) != CACHE_INH) { + if ((opte & CACHE_INH) == 0) { pa = ptoa(PG_PFNUM(opte)); #ifdef MULTIPROCESSOR for (cpu = 0; cpu < MAX_CPUS; cpu++) -- cgit v1.2.3