artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f43ccfb
)
Don't use pa_to_pvh() if we already have the page. Avoids an unused variable
author
kettenis
<kettenis@openbsd.org>
Fri, 10 Apr 2015 18:08:31 +0000
(18:08 +0000)
committer
kettenis
<kettenis@openbsd.org>
Fri, 10 Apr 2015 18:08:31 +0000
(18:08 +0000)
for non-DIAGNOSTIC kernels.
ok deraadt@
sys/arch/sparc64/sparc64/pmap.c
patch
|
blob
|
history
diff --git
a/sys/arch/sparc64/sparc64/pmap.c
b/sys/arch/sparc64/sparc64/pmap.c
index
25f4a15
..
1010d31
100644
(file)
--- a/
sys/arch/sparc64/sparc64/pmap.c
+++ b/
sys/arch/sparc64/sparc64/pmap.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: pmap.c,v 1.9
0 2015/04/09 16:56:52
kettenis Exp $ */
+/* $OpenBSD: pmap.c,v 1.9
1 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;