Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm use VM_PAGE_TO_PHYS macro instead of using phys_addr...
details: https://anonhg.NetBSD.org/src/rev/f161cc82a351
branches: trunk
changeset: 550958:f161cc82a351
user: yamt <yamt%NetBSD.org@localhost>
date: Tue Aug 26 15:12:18 2003 +0000
description:
use VM_PAGE_TO_PHYS macro instead of using phys_addr directly.
diffstat:
sys/uvm/uvm_map.c | 6 +++---
sys/uvm/uvm_pglist.c | 12 ++++++------
2 files changed, 9 insertions(+), 9 deletions(-)
diffs (67 lines):
diff -r 1d7bf263fe54 -r f161cc82a351 sys/uvm/uvm_map.c
--- a/sys/uvm/uvm_map.c Tue Aug 26 15:01:38 2003 +0000
+++ b/sys/uvm/uvm_map.c Tue Aug 26 15:12:18 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_map.c,v 1.136 2003/04/09 21:39:29 thorpej Exp $ */
+/* $NetBSD: uvm_map.c,v 1.137 2003/08/26 15:12:18 yamt Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.136 2003/04/09 21:39:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.137 2003/08/26 15:12:18 yamt Exp $");
#include "opt_ddb.h"
#include "opt_uvmhist.h"
@@ -3519,7 +3519,7 @@
bitmask_snprintf(pg->flags, page_flagbits, pgbuf, sizeof(pgbuf));
bitmask_snprintf(pg->pqflags, page_pqflagbits, pqbuf, sizeof(pqbuf));
(*pr)(" flags=%s, pqflags=%s, wire_count=%d, pa=0x%lx\n",
- pgbuf, pqbuf, pg->wire_count, (long)pg->phys_addr);
+ pgbuf, pqbuf, pg->wire_count, (long)VM_PAGE_TO_PHYS(pg));
(*pr)(" uobject=%p, uanon=%p, offset=0x%llx loan_count=%d\n",
pg->uobject, pg->uanon, (long long)pg->offset, pg->loan_count);
#if defined(UVM_PAGE_TRKOWN)
diff -r 1d7bf263fe54 -r f161cc82a351 sys/uvm/uvm_pglist.c
--- a/sys/uvm/uvm_pglist.c Tue Aug 26 15:01:38 2003 +0000
+++ b/sys/uvm/uvm_pglist.c Tue Aug 26 15:12:18 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_pglist.c,v 1.27 2003/08/02 14:12:51 drochner Exp $ */
+/* $NetBSD: uvm_pglist.c,v 1.28 2003/08/26 15:12:19 yamt Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.27 2003/08/02 14:12:51 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pglist.c,v 1.28 2003/08/26 15:12:19 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -279,8 +279,8 @@
if (num == 0) {
#ifdef PGALLOC_VERBOSE
printf("pgalloc: %lx-%lx\n",
- TAILQ_FIRST(rlist)->phys_addr,
- TAILQ_LAST(rlist, pglist)->phys_addr);
+ VM_PAGE_TO_PHYS(TAILQ_FIRST(rlist)),
+ VM_PAGE_TO_PHYS(TAILQ_LAST(rlist)));
#endif
error = 0;
goto out;
@@ -408,8 +408,8 @@
#ifdef PGALLOC_VERBOSE
if (!error)
printf("pgalloc: %lx..%lx\n",
- TAILQ_FIRST(rlist)->phys_addr,
- TAILQ_LAST(rlist, pglist)->phys_addr);
+ VM_PAGE_TO_PHYS(TAILQ_FIRST(rlist)),
+ VM_PAGE_TO_PHYS(TAILQ_LAST(rlist, pglist)));
#endif
return (error);
}
Home |
Main Index |
Thread Index |
Old Index