From 70bcb8edc25604490baeb2607c81ff2e4ec0b862 Mon Sep 17 00:00:00 2001 From: kettenis Date: Fri, 10 Apr 2015 18:08:31 +0000 Subject: [PATCH] Don't use pa_to_pvh() if we already have the page. Avoids an unused variable for non-DIAGNOSTIC kernels. ok deraadt@ --- sys/arch/sparc64/sparc64/pmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c index 25f4a157764..1010d31a811 100644 --- a/sys/arch/sparc64/sparc64/pmap.c +++ b/sys/arch/sparc64/sparc64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.90 2015/04/09 16:56:52 kettenis Exp $ */ +/* $OpenBSD: pmap.c,v 1.91 2015/04/10 18:08:31 kettenis Exp $ */ /* $NetBSD: pmap.c,v 1.107 2001/08/31 16:47:41 eeh Exp $ */ #undef NO_VCACHE /* Don't forget the locked TLB in dostart */ /* @@ -2805,7 +2805,7 @@ pmap_page_cache(struct pmap *pm, paddr_t pa, int mode) if (CPU_ISSUN4US || CPU_ISSUN4V) return; - pv = pa_to_pvh(pa); + pv = &pg->mdpage.pvent; if (pv == NULL) return; -- 2.20.1