Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm/pmap pg->phys_addr -> VM_PAGE_TO_PHYS().



details:   https://anonhg.NetBSD.org/src/rev/45893e113175
branches:  trunk
changeset: 967984:45893e113175
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Dec 30 18:28:06 2019 +0000

description:
pg->phys_addr -> VM_PAGE_TO_PHYS().

diffstat:

 sys/uvm/pmap/vmpagemd.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b8278f0e120f -r 45893e113175 sys/uvm/pmap/vmpagemd.h
--- a/sys/uvm/pmap/vmpagemd.h   Mon Dec 30 18:18:03 2019 +0000
+++ b/sys/uvm/pmap/vmpagemd.h   Mon Dec 30 18:28:06 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vmpagemd.h,v 1.15 2019/10/20 08:29:38 skrll Exp $      */
+/*     $NetBSD: vmpagemd.h,v 1.16 2019/12/30 18:28:06 ad Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -149,7 +149,7 @@
 do {                                                                   \
        (pg)->mdpage.mdpg_first.pv_next = NULL;                         \
        (pg)->mdpage.mdpg_first.pv_pmap = NULL;                         \
-       (pg)->mdpage.mdpg_first.pv_va = (pg)->phys_addr;                \
+       (pg)->mdpage.mdpg_first.pv_va = VM_PAGE_TO_PHYS(pg);            \
        (pg)->mdpage.mdpg_attrs = 0;                                    \
        VM_PAGEMD_PVLIST_LOCK_INIT(&(pg)->mdpage);                      \
 } while (/* CONSTCOND */ 0)



Home | Main Index | Thread Index | Old Index