summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-01-22 21:01:43 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-01-22 21:01:43 +0000
commita8173e2108dbd6f28dda62efbca738dc58b35e67 (patch)
tree1b1a897b19005196bfb4ad05aa3fa02da2c11eba /sys/arch
parent2adccdd8c97e8a4781d33c8dd817297d7e2cc0ab (diff)
fix wired accounting in pmap_enter()
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/hppa/pmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hppa/hppa/pmap.c b/sys/arch/hppa/hppa/pmap.c
index 779e5aae53c..ddc64be61a9 100644
--- a/sys/arch/hppa/hppa/pmap.c
+++ b/sys/arch/hppa/hppa/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.93 2003/01/22 18:16:34 mickey Exp $ */
+/* $OpenBSD: pmap.c,v 1.94 2003/01/22 21:01:42 mickey Exp $ */
/*
* Copyright (c) 1998-2002 Michael Shalayeff
@@ -740,9 +740,9 @@ pmap_enter(pmap, va, pa, prot, flags)
("pmap_enter: remapping 0x%x -> 0x%x\n", pte, pa));
pmap_pte_flush(pmap, va, pte);
- if (wired && !(pte & PTE_PROT(TLB_WIRED)) == 0)
+ if (wired && !(pte & PTE_PROT(TLB_WIRED)))
pmap->pm_stats.wired_count++;
- else if (!wired && (pte & PTE_PROT(TLB_WIRED)) != 0)
+ else if (!wired && (pte & PTE_PROT(TLB_WIRED)))
pmap->pm_stats.wired_count--;
if (PTE_PAGE(pte) == pa) {