Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Generally update the comment above the vmapbuf() im...
details: https://anonhg.NetBSD.org/src/rev/605b06946bbd
branches: trunk
changeset: 473250:605b06946bbd
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed May 26 22:07:36 1999 +0000
description:
Generally update the comment above the vmapbuf() implementations.
diffstat:
sys/arch/alpha/alpha/vm_machdep.c | 6 ++++--
sys/arch/amiga/amiga/vm_machdep.c | 11 ++++-------
sys/arch/arm32/arm32/vm_machdep.c | 22 ++++------------------
sys/arch/atari/atari/vm_machdep.c | 11 ++++-------
sys/arch/hp300/hp300/vm_machdep.c | 11 ++++-------
sys/arch/i386/i386/vm_machdep.c | 28 +++++-----------------------
sys/arch/mac68k/mac68k/vm_machdep.c | 11 ++++-------
sys/arch/mips/mips/vm_machdep.c | 11 +++++------
sys/arch/mvme68k/mvme68k/vm_machdep.c | 11 ++++-------
sys/arch/next68k/next68k/vm_machdep.c | 11 ++++-------
sys/arch/pc532/pc532/vm_machdep.c | 25 +++++--------------------
sys/arch/pica/pica/vm_machdep.c | 20 ++++----------------
sys/arch/powerpc/powerpc/vm_machdep.c | 6 ++++--
sys/arch/sparc/sparc/vm_machdep.c | 6 ++++--
sys/arch/sparc64/sparc64/vm_machdep.c | 6 ++++--
sys/arch/sun3/sun3/vm_machdep.c | 10 ++++------
sys/arch/vax/vax/vm_machdep.c | 6 +++++-
sys/arch/x68k/x68k/vm_machdep.c | 11 ++++-------
18 files changed, 76 insertions(+), 147 deletions(-)
diffs (truncated from 522 to 300 lines):
diff -r 304973e6f6b8 -r 605b06946bbd sys/arch/alpha/alpha/vm_machdep.c
--- a/sys/arch/alpha/alpha/vm_machdep.c Wed May 26 19:27:49 1999 +0000
+++ b/sys/arch/alpha/alpha/vm_machdep.c Wed May 26 22:07:36 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.48 1999/05/26 00:37:40 thorpej Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.49 1999/05/26 22:07:36 thorpej Exp $ */
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -29,7 +29,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.48 1999/05/26 00:37:40 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.49 1999/05/26 22:07:36 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -349,6 +349,8 @@
/*
* Map a user I/O request into kernel virtual address space.
+ * Note: the pages are already locked by uvm_vslock(), so we
+ * do not need to pass an access_type to pmap_enter().
*/
void
vmapbuf(bp, len)
diff -r 304973e6f6b8 -r 605b06946bbd sys/arch/amiga/amiga/vm_machdep.c
--- a/sys/arch/amiga/amiga/vm_machdep.c Wed May 26 19:27:49 1999 +0000
+++ b/sys/arch/amiga/amiga/vm_machdep.c Wed May 26 22:07:36 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.44 1999/05/14 02:11:59 nisimura Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.45 1999/05/26 22:07:37 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -344,12 +344,9 @@
extern vm_map_t phys_map;
/*
- * Map an IO request into kernel virtual address space.
- *
- * XXX we allocate KVA space by using kmem_alloc_wait which we know
- * allocates space without backing physical memory. This implementation
- * is a total crock, the multiple mappings of these physical pages should
- * be reflected in the higher-level VM structures to avoid problems.
+ * Map a user I/O request into kernel virtual address space.
+ * Note: the pages are already locked by uvm_vslock(), so we
+ * do not need to pass an access_type to pmap_enter().
*/
void
vmapbuf(bp, len)
diff -r 304973e6f6b8 -r 605b06946bbd sys/arch/arm32/arm32/vm_machdep.c
--- a/sys/arch/arm32/arm32/vm_machdep.c Wed May 26 19:27:49 1999 +0000
+++ b/sys/arch/arm32/arm32/vm_machdep.c Wed May 26 22:07:36 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.43 1999/05/26 00:40:20 thorpej Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.44 1999/05/26 22:07:38 thorpej Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -312,24 +312,10 @@
extern vm_map_t phys_map;
/*
- * Map an IO request into kernel virtual address space. Requests fall into
- * one of five catagories:
- *
- * B_PHYS|B_UAREA: User u-area swap.
- * Address is relative to start of u-area (p_addr).
- * B_PHYS|B_PAGET: User page table swap.
- * Address is a kernel VA in usrpt (Usrptmap).
- * B_PHYS|B_DIRTY: Dirty page push.
- * Address is a VA in proc2's address space.
- * B_PHYS|B_PGIN: Kernel pagein of user pages.
- * Address is VA in user's address space.
- * B_PHYS: User "raw" IO request.
- * Address is VA in user's address space.
- *
- * All requests are (re)mapped into kernel VA space via the useriomap
- * (a name with only slightly more meaning than "kernelmap")
+ * Map a user I/O request into kernel virtual address space.
+ * Note: the pages are already locked by uvm_vslock(), so we
+ * do not need to pass an access_type to pmap_enter().
*/
-
void
vmapbuf(bp, len)
struct buf *bp;
diff -r 304973e6f6b8 -r 605b06946bbd sys/arch/atari/atari/vm_machdep.c
--- a/sys/arch/atari/atari/vm_machdep.c Wed May 26 19:27:49 1999 +0000
+++ b/sys/arch/atari/atari/vm_machdep.c Wed May 26 22:07:36 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.25 1999/05/14 02:11:59 nisimura Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.26 1999/05/26 22:07:38 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -342,12 +342,9 @@
extern vm_map_t phys_map;
/*
- * Map an IO request into kernel virtual address space.
- *
- * XXX we allocate KVA space by using kmem_alloc_wait which we know
- * allocates space without backing physical memory. This implementation
- * is a total crock, the multiple mappings of these physical pages should
- * be reflected in the higher-level VM structures to avoid problems.
+ * Map a user I/O request into kernel virtual address space.
+ * Note: the pages are already locked by uvm_vslock(), so we
+ * do not need to pass an access_type to pmap_enter().
*/
void
vmapbuf(bp, len)
diff -r 304973e6f6b8 -r 605b06946bbd sys/arch/hp300/hp300/vm_machdep.c
--- a/sys/arch/hp300/hp300/vm_machdep.c Wed May 26 19:27:49 1999 +0000
+++ b/sys/arch/hp300/hp300/vm_machdep.c Wed May 26 22:07:36 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.48 1999/05/13 21:58:33 thorpej Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.49 1999/05/26 22:07:38 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -298,12 +298,9 @@
extern vm_map_t phys_map;
/*
- * Map an IO request into kernel virtual address space.
- *
- * XXX we allocate KVA space by using kmem_alloc_wait which we know
- * allocates space without backing physical memory. This implementation
- * is a total crock, the multiple mappings of these physical pages should
- * be reflected in the higher-level VM structures to avoid problems.
+ * Map a user I/O request into kernel virtual address space.
+ * Note: the pages are already locked by uvm_vslock(), so we
+ * do not need to pass an access_type to pmap_enter().
*/
void
vmapbuf(bp, len)
diff -r 304973e6f6b8 -r 605b06946bbd sys/arch/i386/i386/vm_machdep.c
--- a/sys/arch/i386/i386/vm_machdep.c Wed May 26 19:27:49 1999 +0000
+++ b/sys/arch/i386/i386/vm_machdep.c Wed May 26 22:07:36 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.78 1999/05/13 21:58:34 thorpej Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.79 1999/05/26 22:07:38 thorpej Exp $ */
/*-
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
@@ -375,26 +375,11 @@
extern vm_map_t phys_map;
/*
- * Map an IO request into kernel virtual address space. Requests fall into
- * one of five catagories:
- *
- * B_PHYS|B_UAREA: User u-area swap.
- * Address is relative to start of u-area (p_addr).
- * B_PHYS|B_PAGET: User page table swap.
- * Address is a kernel VA in usrpt (Usrptmap).
- * B_PHYS|B_DIRTY: Dirty page push.
- * Address is a VA in proc2's address space.
- * B_PHYS|B_PGIN: Kernel pagein of user pages.
- * Address is VA in user's address space.
- * B_PHYS: User "raw" IO request.
- * Address is VA in user's address space.
- *
- * All requests are (re)mapped into kernel VA space via the phys_map
- * (a name with only slightly more meaning than "kernel_map")
+ * Map a user I/O request into kernel virtual address space.
+ * Note: the pages are already locked by uvm_vslock(), so we
+ * do not need to pass an access_type to pmap_enter().
*/
-
#if defined(PMAP_NEW)
-
void
vmapbuf(bp, len)
struct buf *bp;
@@ -432,9 +417,7 @@
len -= PAGE_SIZE;
}
}
-
#else /* PMAP_NEW */
-
void
vmapbuf(bp, len)
struct buf *bp;
@@ -462,8 +445,7 @@
len -= PAGE_SIZE;
} while (len);
}
-
-#endif
+#endif /* PMAP_NEW */
/*
* Free the io map PTEs associated with this IO operation.
diff -r 304973e6f6b8 -r 605b06946bbd sys/arch/mac68k/mac68k/vm_machdep.c
--- a/sys/arch/mac68k/mac68k/vm_machdep.c Wed May 26 19:27:49 1999 +0000
+++ b/sys/arch/mac68k/mac68k/vm_machdep.c Wed May 26 22:07:36 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.38 1999/05/14 02:12:00 nisimura Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.39 1999/05/26 22:07:39 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -296,12 +296,9 @@
extern vm_map_t phys_map;
/*
- * Map an IO request into kernel virtual address space.
- *
- * XXX we allocate KVA space by using kmem_alloc_wait which we know
- * allocates space without backing physical memory. This implementation
- * is a total crock, the multiple mappings of these physical pages should
- * be reflected in the higher-level VM structures to avoid problems.
+ * Map a user I/O request into kernel virtual address space.
+ * Note: the pages are already locked by uvm_vslock(), so we
+ * do not need to pass an access_type to pmap_enter().
*/
void
vmapbuf(bp, len)
diff -r 304973e6f6b8 -r 605b06946bbd sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c Wed May 26 19:27:49 1999 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c Wed May 26 22:07:36 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.37 1999/05/14 02:12:00 nisimura Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.38 1999/05/26 22:07:39 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.37 1999/05/14 02:12:00 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.38 1999/05/26 22:07:39 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -299,10 +299,9 @@
extern vm_map_t phys_map;
/*
- * Map an IO request into kernel virtual address space.
- *
- * Called by physio() in kern/kern_physio.c for raw device I/O
- * between user address and device driver bypassing filesystem cache.
+ * Map a user I/O request into kernel virtual address space.
+ * Note: the pages are already locked by uvm_vslock(), so we
+ * do not need to pass an access_type to pmap_enter().
*/
void
vmapbuf(bp, len)
diff -r 304973e6f6b8 -r 605b06946bbd sys/arch/mvme68k/mvme68k/vm_machdep.c
--- a/sys/arch/mvme68k/mvme68k/vm_machdep.c Wed May 26 19:27:49 1999 +0000
+++ b/sys/arch/mvme68k/mvme68k/vm_machdep.c Wed May 26 22:07:36 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.22 1999/05/14 02:12:00 nisimura Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.23 1999/05/26 22:07:39 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -366,12 +366,9 @@
extern vm_map_t phys_map;
/*
- * Map an IO request into kernel virtual address space.
- *
- * XXX we allocate KVA space by using kmem_alloc_wait which we know
- * allocates space without backing physical memory. This implementation
- * is a total crock, the multiple mappings of these physical pages should
- * be reflected in the higher-level VM structures to avoid problems.
+ * Map a user I/O request into kernel virtual address space.
+ * Note: the pages are already locked by uvm_vslock(), so we
+ * do not need to pass an access_type to pmap_enter().
*/
void
vmapbuf(bp, len)
diff -r 304973e6f6b8 -r 605b06946bbd sys/arch/next68k/next68k/vm_machdep.c
--- a/sys/arch/next68k/next68k/vm_machdep.c Wed May 26 19:27:49 1999 +0000
+++ b/sys/arch/next68k/next68k/vm_machdep.c Wed May 26 22:07:36 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.10 1999/05/13 21:58:34 thorpej Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.11 1999/05/26 22:07:39 thorpej Exp $ */
/*
* This file was taken from mvme68k/mvme68k/vm_machdep.c
@@ -377,12 +377,9 @@
extern vm_map_t phys_map;
/*
- * Map an IO request into kernel virtual address space.
- *
- * XXX we allocate KVA space by using kmem_alloc_wait which we know
- * allocates space without backing physical memory. This implementation
- * is a total crock, the multiple mappings of these physical pages should
- * be reflected in the higher-level VM structures to avoid problems.
+ * Map a user I/O request into kernel virtual address space.
Home |
Main Index |
Thread Index |
Old Index