summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2009-07-26 15:47:23 +0000
committerkettenis <kettenis@openbsd.org>2009-07-26 15:47:23 +0000
commitb680c7bfba802dc9cdb6e6cab190eb66dd9f8f51 (patch)
treeb48aed0e673456b79cb1ea1c5bdf37dfc1a94fa9
parenttimeout_add -> timeout_add_msec (diff)
downloadwireguard-openbsd-b680c7bfba802dc9cdb6e6cab190eb66dd9f8f51.tar.xz
wireguard-openbsd-b680c7bfba802dc9cdb6e6cab190eb66dd9f8f51.zip
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))) {