From 3743c9d6c5dee78156b625efa61e1c78ba3f7a3a Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 26 Jul 2009 15:47:24 +0000 Subject: 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. --- sys/arch/hppa/hppa/pmap.c | 7 +++++-- 1 file 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))) { -- cgit v1.2.3