diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-01 06:25:52 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-01 06:25:52 +0000 |
commit | 225c89d986fb39a0efa4ebac1c447213bcbefb88 (patch) | |
tree | bb164f67fc0369c61141666225ddebf28e873be0 /sys | |
parent | 13327c4951bdfc518f5556d1bb63d61d00dcfc2e (diff) |
Better test for cacheability of the previous mapping in pmap_cache_ctrl()
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/m88k/m88k/pmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
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++) |