summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-07-26 15:47:24 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-07-26 15:47:24 +0000
commit3743c9d6c5dee78156b625efa61e1c78ba3f7a3a (patch)
tree28bb43702031a3a50f146c559610ec0f68ca4c69
parentcb0a0f90cfd7d090d3ac1f6afd8ba7702c1f32ee (diff)
I'm not as smart as mickey, so replace:
batch = pdemask == sva && sva + ~PDE_MASK + 1 <= eva; with something that's a little bit easier to read.
-rw-r--r--sys/arch/hppa/hppa/pmap.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/pmap.c b/sys/arch/hppa/hppa/pmap.c
index 8cd3208d741..70f4ff147f7 100644
--- a/sys/arch/hppa/hppa/pmap.c
+++ b/sys/arch/hppa/hppa/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.139 2009/07/25 12:41:46 kettenis Exp $ */
+/* $OpenBSD: pmap.c,v 1.140 2009/07/26 15:47:23 kettenis Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -893,7 +893,10 @@ pmap_remove(pmap, sva, eva)
sva = pdemask + (~PDE_MASK + 1) - PAGE_SIZE;
continue;
}
- batch = pdemask == sva && sva + ~PDE_MASK + 1 <= eva;
+ if (pdemask == sva && sva + (~PDE_MASK + 1) <= eva)
+ batch = 1;
+ else
+ batch = 0;
}
if ((pte = pmap_pte_get(pde, sva))) {