Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm/pmap Provide and use PV_ISKENTER_P. NFCI.
details: https://anonhg.NetBSD.org/src/rev/9e4d5f727605
branches: trunk
changeset: 1000181:9e4d5f727605
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Jul 12 10:39:12 2019 +0000
description:
Provide and use PV_ISKENTER_P. NFCI.
diffstat:
sys/uvm/pmap/pmap.c | 10 +++++-----
sys/uvm/pmap/vmpagemd.h | 4 +++-
2 files changed, 8 insertions(+), 6 deletions(-)
diffs (63 lines):
diff -r 151fcba400d0 -r 9e4d5f727605 sys/uvm/pmap/pmap.c
--- a/sys/uvm/pmap/pmap.c Fri Jul 12 06:44:49 2019 +0000
+++ b/sys/uvm/pmap/pmap.c Fri Jul 12 10:39:12 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.41 2019/06/19 09:56:17 skrll Exp $ */
+/* $NetBSD: pmap.c,v 1.42 2019/07/12 10:39:12 skrll Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.41 2019/06/19 09:56:17 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.42 2019/07/12 10:39:12 skrll Exp $");
/*
* Manages physical address maps.
@@ -722,7 +722,7 @@
for (; pv != NULL; pv = npv) {
npv = pv->pv_next;
#ifdef PMAP_VIRTUAL_CACHE_ALIASES
- if (pv->pv_va & PV_KENTER) {
+ if (PV_ISKENTER_P(pv)) {
UVMHIST_LOG(pmaphist, " pv %#jx pmap %#jx va %jx"
" skip", (uintptr_t)pv, (uintptr_t)pv->pv_pmap,
pv->pv_va, 0);
@@ -988,7 +988,7 @@
if (pv->pv_pmap != NULL) {
while (pv != NULL) {
#ifdef PMAP_VIRTUAL_CACHE_ALIASES
- if (pv->pv_va & PV_KENTER) {
+ if (PV_ISKENTER_P(pv)) {
pv = pv->pv_next;
continue;
}
@@ -1664,7 +1664,7 @@
pv_next = pv->pv_next;
#ifdef PMAP_VIRTUAL_CACHE_ALIASES
- if (pv->pv_va & PV_KENTER)
+ if (PV_ISKENTER_P(pv))
continue;
#endif
pt_entry_t * const ptep = pmap_pte_lookup(pmap, va);
diff -r 151fcba400d0 -r 9e4d5f727605 sys/uvm/pmap/vmpagemd.h
--- a/sys/uvm/pmap/vmpagemd.h Fri Jul 12 06:44:49 2019 +0000
+++ b/sys/uvm/pmap/vmpagemd.h Fri Jul 12 10:39:12 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmpagemd.h,v 1.11 2019/06/19 12:55:01 christos Exp $ */
+/* $NetBSD: vmpagemd.h,v 1.12 2019/07/12 10:39:12 skrll Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -63,6 +63,8 @@
#define PV_KENTER __BIT(0)
} *pv_entry_t;
+#define PV_ISKENTER_P(pv) (((pv->pv_va) & PV_KENTER) != 0)
+
#ifndef _MODULE
#define VM_PAGEMD_REFERENCED __BIT(0) /* page has been referenced */
Home |
Main Index |
Thread Index |
Old Index