summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-06-26 22:23:04 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-06-26 22:23:04 +0000
commit9ced78d8f6198e939d91a22caaa0e217af5336e7 (patch)
tree9b06cfa47af9e62d62ee2a36c4451bc84b1d0479 /sys/arch
parentc1a42a452468db9ee06e84d2749bf5423a922518 (diff)
atop(PAGE_SIZE) -> 1, 'tis true but it gets computed faster when PAGE_SIZE
is not a constant.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc/sparc/pmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/sparc/pmap.c b/sys/arch/sparc/sparc/pmap.c
index 1dc00992d4c..594b9784db7 100644
--- a/sys/arch/sparc/sparc/pmap.c
+++ b/sys/arch/sparc/sparc/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.143 2005/04/17 18:47:50 miod Exp $ */
+/* $OpenBSD: pmap.c,v 1.144 2006/06/26 22:23:03 miod Exp $ */
/* $NetBSD: pmap.c,v 1.118 1998/05/19 19:00:18 thorpej Exp $ */
/*
@@ -224,7 +224,7 @@ pgt_page_alloc(struct pool *pp, int flags)
PAGE_SIZE, UVM_KMF_NOWAIT);
if (p != NULL && ((cpuinfo.flags & CPUFLG_CACHEPAGETABLES) == 0)) {
pcache_flush(p, (caddr_t)VA2PA(p), PAGE_SIZE);
- kvm_uncache(p, atop(PAGE_SIZE));
+ kvm_uncache(p, 1);
}
return (p);
}