Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/uebayasi-xip]: src/sys Clean up; merge options DIRECT_PAGE into options ...
details: https://anonhg.NetBSD.org/src/rev/0fd83c927ac9
branches: uebayasi-xip
changeset: 751730:0fd83c927ac9
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Wed Jul 07 16:35:24 2010 +0000
description:
Clean up; merge options DIRECT_PAGE into options XIP.
diffstat:
sys/arch/alpha/alpha/pmap.c | 5 ++---
sys/arch/arm/arm32/mem.c | 7 +++----
sys/arch/arm/arm32/pmap.c | 5 ++---
sys/arch/hppa/hppa/pmap.c | 5 ++---
sys/arch/ia64/ia64/pmap.c | 5 ++---
sys/conf/files | 6 ++----
sys/uvm/uvm_bio.c | 5 ++---
sys/uvm/uvm_fault.c | 5 ++---
sys/uvm/uvm_km.c | 5 ++---
sys/uvm/uvm_page.c | 19 +++++++++----------
10 files changed, 28 insertions(+), 39 deletions(-)
diffs (291 lines):
diff -r 5de38a52a70b -r 0fd83c927ac9 sys/arch/alpha/alpha/pmap.c
--- a/sys/arch/alpha/alpha/pmap.c Wed Jul 07 14:29:37 2010 +0000
+++ b/sys/arch/alpha/alpha/pmap.c Wed Jul 07 16:35:24 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.252.2.3 2010/05/31 13:26:36 uebayasi Exp $ */
+/* $NetBSD: pmap.c,v 1.252.2.4 2010/07/07 16:35:24 uebayasi Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001, 2007, 2008 The NetBSD Foundation, Inc.
@@ -137,12 +137,11 @@
#include "opt_lockdebug.h"
#include "opt_sysv.h"
#include "opt_multiprocessor.h"
-#include "opt_direct_page.h"
#include "opt_xip.h"
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.252.2.3 2010/05/31 13:26:36 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.252.2.4 2010/07/07 16:35:24 uebayasi Exp $");
#include <sys/param.h>
#include <sys/systm.h>
diff -r 5de38a52a70b -r 0fd83c927ac9 sys/arch/arm/arm32/mem.c
--- a/sys/arch/arm/arm32/mem.c Wed Jul 07 14:29:37 2010 +0000
+++ b/sys/arch/arm/arm32/mem.c Wed Jul 07 16:35:24 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mem.c,v 1.26.6.4 2010/05/31 13:26:36 uebayasi Exp $ */
+/* $NetBSD: mem.c,v 1.26.6.5 2010/07/07 16:35:25 uebayasi Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -74,11 +74,10 @@
#include "opt_arm32_pmap.h"
#include "opt_compat_netbsd.h"
-#include "opt_direct_page.h"
#include "opt_xip.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.26.6.4 2010/05/31 13:26:36 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.26.6.5 2010/07/07 16:35:25 uebayasi Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -92,7 +91,7 @@
#include <machine/cpu.h>
-#include <uvm/uvm_extern.h>
+#include <uvm/uvm.h>
extern vaddr_t memhook; /* in pmap.c (poor name!) */
extern kmutex_t memlock; /* in pmap.c */
diff -r 5de38a52a70b -r 0fd83c927ac9 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Wed Jul 07 14:29:37 2010 +0000
+++ b/sys/arch/arm/arm32/pmap.c Wed Jul 07 16:35:24 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.211.2.13 2010/05/31 13:26:36 uebayasi Exp $ */
+/* $NetBSD: pmap.c,v 1.211.2.14 2010/07/07 16:35:25 uebayasi Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -191,7 +191,6 @@
#include "opt_ddb.h"
#include "opt_lockdebug.h"
#include "opt_multiprocessor.h"
-#include "opt_direct_page.h"
#include "opt_xip.h"
#include <sys/param.h>
@@ -213,7 +212,7 @@
#include <machine/param.h>
#include <arm/arm32/katelib.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.211.2.13 2010/05/31 13:26:36 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.211.2.14 2010/07/07 16:35:25 uebayasi Exp $");
#ifdef PMAP_DEBUG
diff -r 5de38a52a70b -r 0fd83c927ac9 sys/arch/hppa/hppa/pmap.c
--- a/sys/arch/hppa/hppa/pmap.c Wed Jul 07 14:29:37 2010 +0000
+++ b/sys/arch/hppa/hppa/pmap.c Wed Jul 07 16:35:24 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.63.2.5 2010/05/31 13:26:37 uebayasi Exp $ */
+/* $NetBSD: pmap.c,v 1.63.2.6 2010/07/07 16:35:25 uebayasi Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -65,9 +65,8 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.63.2.5 2010/05/31 13:26:37 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.63.2.6 2010/07/07 16:35:25 uebayasi Exp $");
-#include "opt_direct_page.h"
#include "opt_xip.h"
#include "opt_cputype.h"
diff -r 5de38a52a70b -r 0fd83c927ac9 sys/arch/ia64/ia64/pmap.c
--- a/sys/arch/ia64/ia64/pmap.c Wed Jul 07 14:29:37 2010 +0000
+++ b/sys/arch/ia64/ia64/pmap.c Wed Jul 07 16:35:24 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.24.2.3 2010/05/31 13:26:37 uebayasi Exp $ */
+/* $NetBSD: pmap.c,v 1.24.2.4 2010/07/07 16:35:25 uebayasi Exp $ */
/*-
@@ -85,9 +85,8 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.24.2.3 2010/05/31 13:26:37 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.24.2.4 2010/07/07 16:35:25 uebayasi Exp $");
-#include "opt_direct_page.h"
#include "opt_xip.h"
#include <sys/param.h>
diff -r 5de38a52a70b -r 0fd83c927ac9 sys/conf/files
--- a/sys/conf/files Wed Jul 07 14:29:37 2010 +0000
+++ b/sys/conf/files Wed Jul 07 16:35:24 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files,v 1.974.2.4 2010/05/31 13:26:37 uebayasi Exp $
+# $NetBSD: files,v 1.974.2.5 2010/07/07 16:35:25 uebayasi Exp $
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
version 20090313
@@ -119,10 +119,8 @@
defflag opt_wapbl.h WAPBL WAPBL_DEBUG
defparam opt_wapbl.h WAPBL_DEBUG_PRINT
-defflag opt_direct_page.h DIRECT_PAGE
-
# eXecute In Place
-defflag opt_xip.h XIP: DIRECT_PAGE
+defflag opt_xip.h XIP
# compatibility options
#
diff -r 5de38a52a70b -r 0fd83c927ac9 sys/uvm/uvm_bio.c
--- a/sys/uvm/uvm_bio.c Wed Jul 07 14:29:37 2010 +0000
+++ b/sys/uvm/uvm_bio.c Wed Jul 07 16:35:24 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_bio.c,v 1.68.2.3 2010/05/31 13:26:38 uebayasi Exp $ */
+/* $NetBSD: uvm_bio.c,v 1.68.2.4 2010/07/07 16:35:26 uebayasi Exp $ */
/*
* Copyright (c) 1998 Chuck Silvers.
@@ -34,11 +34,10 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_bio.c,v 1.68.2.3 2010/05/31 13:26:38 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_bio.c,v 1.68.2.4 2010/07/07 16:35:26 uebayasi Exp $");
#include "opt_uvmhist.h"
#include "opt_ubc.h"
-#include "opt_direct_page.h"
#include "opt_xip.h"
#include <sys/param.h>
diff -r 5de38a52a70b -r 0fd83c927ac9 sys/uvm/uvm_fault.c
--- a/sys/uvm/uvm_fault.c Wed Jul 07 14:29:37 2010 +0000
+++ b/sys/uvm/uvm_fault.c Wed Jul 07 16:35:24 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_fault.c,v 1.166.2.9 2010/07/07 14:29:37 uebayasi Exp $ */
+/* $NetBSD: uvm_fault.c,v 1.166.2.10 2010/07/07 16:35:26 uebayasi Exp $ */
/*
*
@@ -39,10 +39,9 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.166.2.9 2010/07/07 14:29:37 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.166.2.10 2010/07/07 16:35:26 uebayasi Exp $");
#include "opt_uvmhist.h"
-#include "opt_direct_page.h"
#include "opt_xip.h"
#include <sys/param.h>
diff -r 5de38a52a70b -r 0fd83c927ac9 sys/uvm/uvm_km.c
--- a/sys/uvm/uvm_km.c Wed Jul 07 14:29:37 2010 +0000
+++ b/sys/uvm/uvm_km.c Wed Jul 07 16:35:24 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_km.c,v 1.104.2.5 2010/07/06 07:20:26 uebayasi Exp $ */
+/* $NetBSD: uvm_km.c,v 1.104.2.6 2010/07/07 16:35:26 uebayasi Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -127,10 +127,9 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_km.c,v 1.104.2.5 2010/07/06 07:20:26 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_km.c,v 1.104.2.6 2010/07/07 16:35:26 uebayasi Exp $");
#include "opt_uvmhist.h"
-#include "opt_direct_page.h"
#include "opt_xip.h"
#include <sys/param.h>
diff -r 5de38a52a70b -r 0fd83c927ac9 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c Wed Jul 07 14:29:37 2010 +0000
+++ b/sys/uvm/uvm_page.c Wed Jul 07 16:35:24 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_page.c,v 1.153.2.40 2010/07/07 14:29:38 uebayasi Exp $ */
+/* $NetBSD: uvm_page.c,v 1.153.2.41 2010/07/07 16:35:26 uebayasi Exp $ */
/*
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -97,12 +97,11 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.153.2.40 2010/07/07 14:29:38 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.153.2.41 2010/07/07 16:35:26 uebayasi Exp $");
#include "opt_ddb.h"
#include "opt_uvmhist.h"
#include "opt_readahead.h"
-#include "opt_direct_page.h"
#include "opt_xip.h"
#include <sys/param.h>
@@ -135,7 +134,7 @@
static struct vm_physseg vm_physmem_store[VM_PHYSSEG_MAX];
static struct vm_physseg_freelist vm_physmem_freelist =
SIMPLEQ_HEAD_INITIALIZER(vm_physmem_freelist);
-#ifdef DIRECT_PAGE
+#ifdef XIP
struct vm_physseg *vm_physdev_ptrs[VM_PHYSSEG_MAX];
int vm_nphysdev = 0;
static struct vm_physseg vm_physdev_store[VM_PHYSSEG_MAX];
@@ -838,7 +837,7 @@
vm_nphysmem--;
}
-#ifdef DIRECT_PAGE
+#ifdef XIP
void *
uvm_page_physload_direct(paddr_t start, paddr_t end, paddr_t avail_start,
paddr_t avail_end, int prot, int flags)
@@ -854,7 +853,7 @@
seg->flags = flags; /* XXXUEBS BUS_SPACE_MAP_* */
/*
- * XIP page metadata
+ * XIP page metadata initialization
* - Only "phys_addr" and "vm_page_md" (== "PV" management) are used.
* - No "pageq" operation is done.
*/
@@ -941,7 +940,7 @@
SIMPLEQ_INSERT_TAIL(&vm_physmem_freelist,
&vm_physmem_store[lcv], list);
}
-#ifdef DIRECT_PAGE
+#ifdef XIP
for (lcv = 0; lcv < VM_PHYSSEG_MAX; lcv++) {
SIMPLEQ_INSERT_TAIL(&vm_physdev_freelist,
&vm_physdev_store[lcv], list);
@@ -1046,7 +1045,7 @@
pframe, NULL, offp);
}
-#ifdef DIRECT_PAGE
+#ifdef XIP
int
vm_physseg_find_direct(paddr_t pframe, int *offp)
{
@@ -1194,7 +1193,7 @@
int off;
int psi;
-#ifdef DIRECT_PAGE
+#ifdef XIP
psi = vm_physseg_find_direct(pf, &off);
if (psi != -1)
return(&vm_physdev_ptrs[psi]->pgs[off]);
@@ -2208,7 +2207,7 @@
{
return
-#ifdef DIRECT_PAGE
+#ifdef XIP
(vm_physseg_find_direct(atop(pa), NULL) != -1) ||
#endif
(vm_physseg_find(atop(pa), NULL) != -1);
Home |
Main Index |
Thread Index |
Old Index