Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/uebayasi-xip]: src Drop the 'paddr_t avail_start' and 'paddr_t avail_end...
details: https://anonhg.NetBSD.org/src/rev/23c64889db84
branches: uebayasi-xip
changeset: 751829:23c64889db84
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Tue Nov 02 14:05:27 2010 +0000
description:
Drop the 'paddr_t avail_start' and 'paddr_t avail_end' arguments
from uvm_page_physload_device(9).
Those two arguments are used by uvm_page_physload(9) to specify a
range of physical memory available for general purpose pages (pages
which are linked to freelists). Totally irrelevant to device
segments.
diffstat:
share/man/man9/uvm.9 | 13 +++++--------
sys/arch/arm/imx/imx31_space.c | 6 +++---
sys/arch/powerpc/powerpc/bus_space.c | 6 +++---
sys/common/pmap/pmap_common.c | 6 +++---
sys/uvm/uvm_extern.h | 4 ++--
sys/uvm/uvm_page.c | 7 +++----
6 files changed, 19 insertions(+), 23 deletions(-)
diffs (164 lines):
diff -r 51151b6cbadf -r 23c64889db84 share/man/man9/uvm.9
--- a/share/man/man9/uvm.9 Sun Oct 31 03:46:16 2010 +0000
+++ b/share/man/man9/uvm.9 Tue Nov 02 14:05:27 2010 +0000
@@ -1,5 +1,6 @@
-.\" $NetBSD: uvm.9,v 1.102.2.2 2010/10/21 17:16:28 uebayasi Exp $
+.\" $NetBSD: uvm.9,v 1.102.2.3 2010/11/02 14:05:27 uebayasi Exp $
.\"
+.\" Copyright (c) 2010 The NetBSD Froundation, Inc.
.\" Copyright (c) 1998 Matthew R. Green
.\" All rights reserved.
.\"
@@ -24,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd October 21, 2010
+.Dd November 2, 2010
.Dt UVM 9
.Os
.Sh NAME
@@ -659,7 +660,7 @@
.It Ft void
.Fn uvm_page_physunload "void *physseg" ;
.It Ft void *
-.Fn uvm_page_physload_device "paddr_t start" "paddr_t end" "paddr_t avail_start" "paddr_t avail_end" "int prot" "int flags" ;
+.Fn uvm_page_physload_device "paddr_t start" "paddr_t end" "int prot" "int flags" ;
.It Ft void
.Fn uvm_page_physunload_device "void *physseg" ;
.El
@@ -707,11 +708,7 @@
.Fa start
and
.Fa end
-of the physical addresses of the segment, and the
-.Fa avail_start
-and
-.Fa avail_end
-addresses of pages not already in use.
+of the physical addresses of the segment.
The
.Fa prot
describes the potential protection (region accessibility) of the
diff -r 51151b6cbadf -r 23c64889db84 sys/arch/arm/imx/imx31_space.c
--- a/sys/arch/arm/imx/imx31_space.c Sun Oct 31 03:46:16 2010 +0000
+++ b/sys/arch/arm/imx/imx31_space.c Tue Nov 02 14:05:27 2010 +0000
@@ -1,7 +1,7 @@
-/* $Id: imx31_space.c,v 1.3.2.5 2010/07/28 04:16:12 uebayasi Exp $ */
+/* $Id: imx31_space.c,v 1.3.2.6 2010/11/02 14:05:27 uebayasi Exp $ */
/* derived from: */
-/* $NetBSD: imx31_space.c,v 1.3.2.5 2010/07/28 04:16:12 uebayasi Exp $ */
+/* $NetBSD: imx31_space.c,v 1.3.2.6 2010/11/02 14:05:27 uebayasi Exp $ */
/*
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -306,7 +306,7 @@
const paddr_t start = imx31_bs_mmap(t, addr, 0, prot, flags);
const paddr_t end = imx31_bs_mmap(t, addr + size, 0, prot, flags);
- return uvm_page_physload_device(start, end, start, end, prot, flags);
+ return uvm_page_physload_device(start, end, prot, flags);
}
void
diff -r 51151b6cbadf -r 23c64889db84 sys/arch/powerpc/powerpc/bus_space.c
--- a/sys/arch/powerpc/powerpc/bus_space.c Sun Oct 31 03:46:16 2010 +0000
+++ b/sys/arch/powerpc/powerpc/bus_space.c Tue Nov 02 14:05:27 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_space.c,v 1.20.20.2 2010/08/11 13:20:08 uebayasi Exp $ */
+/* $NetBSD: bus_space.c,v 1.20.20.3 2010/11/02 14:05:28 uebayasi Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.20.20.2 2010/08/11 13:20:08 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.20.20.3 2010/11/02 14:05:28 uebayasi Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -793,7 +793,7 @@
const paddr_t start = memio_mmap(t, bpa, 0, prot, flags) >> PAGE_SHIFT;
const paddr_t end = memio_mmap(t, bpa + size, 0, prot, flags) >> PAGE_SHIFT;
- return uvm_page_physload_device(start, end, start, end, prot, flags);
+ return uvm_page_physload_device(start, end, prot, flags);
}
static void
diff -r 51151b6cbadf -r 23c64889db84 sys/common/pmap/pmap_common.c
--- a/sys/common/pmap/pmap_common.c Sun Oct 31 03:46:16 2010 +0000
+++ b/sys/common/pmap/pmap_common.c Tue Nov 02 14:05:27 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap_common.c,v 1.1.2.1 2010/10/30 08:41:14 uebayasi Exp $ */
+/* $NetBSD: pmap_common.c,v 1.1.2.2 2010/11/02 14:05:28 uebayasi Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_common.c,v 1.1.2.1 2010/10/30 08:41:14 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_common.c,v 1.1.2.2 2010/11/02 14:05:28 uebayasi Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -42,7 +42,7 @@
start = pmap_mmap(addr, 0);
end = pmap_mmap(addr, size);
- return uvm_page_physload_device(start, end, start, end, prot, flags);
+ return uvm_page_physload_device(start, end, prot, flags);
}
void
diff -r 51151b6cbadf -r 23c64889db84 sys/uvm/uvm_extern.h
--- a/sys/uvm/uvm_extern.h Sun Oct 31 03:46:16 2010 +0000
+++ b/sys/uvm/uvm_extern.h Tue Nov 02 14:05:27 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_extern.h,v 1.161.2.9 2010/10/30 05:56:00 uebayasi Exp $ */
+/* $NetBSD: uvm_extern.h,v 1.161.2.10 2010/11/02 14:05:28 uebayasi Exp $ */
/*
*
@@ -723,7 +723,7 @@
paddr_t, paddr_t, int);
void uvm_page_physunload(void *);
void *uvm_page_physload_device(paddr_t, paddr_t,
- paddr_t, paddr_t, int, int);
+ int, int);
void uvm_page_physunload_device(void *);
void uvm_setpagesize(void);
diff -r 51151b6cbadf -r 23c64889db84 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c Sun Oct 31 03:46:16 2010 +0000
+++ b/sys/uvm/uvm_page.c Tue Nov 02 14:05:27 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_page.c,v 1.153.2.57 2010/10/27 14:51:29 uebayasi Exp $ */
+/* $NetBSD: uvm_page.c,v 1.153.2.58 2010/11/02 14:05:28 uebayasi Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.153.2.57 2010/10/27 14:51:29 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.153.2.58 2010/11/02 14:05:28 uebayasi Exp $");
#include "opt_ddb.h"
#include "opt_uvmhist.h"
@@ -831,8 +831,7 @@
}
void *
-uvm_page_physload_device(paddr_t start, paddr_t end, paddr_t avail_start,
- paddr_t avail_end, int prot, int flags)
+uvm_page_physload_device(paddr_t start, paddr_t end, int prot, int flags)
{
struct vm_physseg *seg;
int i;
Home |
Main Index |
Thread Index |
Old Index