replace vm_page_t with struct vm_page *.
This commit is contained in:
parent
474bc8ee6d
commit
11a9651c8f
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_dma.c,v 1.2 2001/04/24 04:31:03 thorpej Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.3 2001/05/26 21:27:10 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -672,7 +672,7 @@ _bus_dmamem_alloc_range(t, size, alignment, boundary, segs, nsegs, rsegs,
|
||||
paddr_t high;
|
||||
{
|
||||
paddr_t curaddr, lastaddr;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
struct pglist mlist;
|
||||
int curseg, error;
|
||||
|
||||
@ -736,7 +736,7 @@ _bus_dmamem_free(t, segs, nsegs)
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
bus_addr_t addr;
|
||||
struct pglist mlist;
|
||||
int curseg;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.22 2001/05/26 16:32:43 chs Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.23 2001/05/26 21:27:10 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Carnegie-Mellon University
|
||||
@ -88,7 +88,7 @@ typedef struct pmap *pmap_t;
|
||||
}
|
||||
|
||||
/*
|
||||
* For each vm_page_t, there is a list of all currently valid virtual
|
||||
* For each struct vm_page, there is a list of all currently valid virtual
|
||||
* mappings of that page. An entry is a pv_entry, the list is pv_table.
|
||||
*/
|
||||
struct pv_entry {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_dma.c,v 1.14 2001/05/16 19:06:47 scw Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.15 2001/05/26 21:27:10 chs Exp $ */
|
||||
|
||||
/*
|
||||
* This file was taken from from next68k/dev/bus_dma.c, which was originally
|
||||
@ -46,7 +46,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.14 2001/05/16 19:06:47 scw Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.15 2001/05/26 21:27:10 chs Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -604,7 +604,7 @@ _bus_dmamem_alloc_common(t, low, high, size, alignment, boundary,
|
||||
int flags;
|
||||
{
|
||||
paddr_t curaddr, lastaddr;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
struct pglist mlist;
|
||||
int curseg, error;
|
||||
|
||||
@ -725,7 +725,7 @@ _bus_dmamem_free(t, segs, nsegs)
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
bus_addr_t addr;
|
||||
struct pglist mlist;
|
||||
int curseg;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.60 2001/05/16 19:06:47 scw Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.61 2001/05/26 21:27:10 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -2641,7 +2641,7 @@ void
|
||||
pmap_ptpage_addref(ptpva)
|
||||
vaddr_t ptpva;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
|
||||
simple_lock(&uvm.kernel_object->vmobjlock);
|
||||
m = uvm_pagelookup(uvm.kernel_object, ptpva - vm_map_min(kernel_map));
|
||||
@ -2658,7 +2658,7 @@ int
|
||||
pmap_ptpage_delref(ptpva)
|
||||
vaddr_t ptpva;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
int rv;
|
||||
|
||||
simple_lock(&uvm.kernel_object->vmobjlock);
|
||||
@ -2793,7 +2793,7 @@ pmap_check_wiring(str, va)
|
||||
{
|
||||
pt_entry_t *pte;
|
||||
paddr_t pa;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
int count;
|
||||
|
||||
if (!pmap_ste_v(pmap_kernel(), va) ||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.8 2001/05/26 16:32:43 chs Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.9 2001/05/26 21:27:11 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Carnegie-Mellon University
|
||||
@ -89,7 +89,7 @@ typedef struct pmap *pmap_t;
|
||||
}
|
||||
|
||||
/*
|
||||
* For each vm_page_t, there is a list of all currently valid virtual
|
||||
* For each struct vm_page, there is a list of all currently valid virtual
|
||||
* mappings of that page. An entry is a pv_entry, the list is pv_table.
|
||||
*/
|
||||
struct pv_entry {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.14 2001/04/24 04:31:04 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.15 2001/05/26 21:27:11 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -2719,7 +2719,7 @@ void
|
||||
pmap_ptpage_addref(ptpva)
|
||||
vaddr_t ptpva;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
|
||||
simple_lock(&uvm.kernel_object->vmobjlock);
|
||||
m = uvm_pagelookup(uvm.kernel_object, ptpva - vm_map_min(kernel_map));
|
||||
@ -2736,7 +2736,7 @@ int
|
||||
pmap_ptpage_delref(ptpva)
|
||||
vaddr_t ptpva;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
int rv;
|
||||
|
||||
simple_lock(&uvm.kernel_object->vmobjlock);
|
||||
@ -2782,7 +2782,7 @@ pmap_check_wiring(str, va)
|
||||
{
|
||||
pt_entry_t *pte;
|
||||
paddr_t pa;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
int count;
|
||||
|
||||
if (!pmap_ste_v(pmap_kernel(), va) ||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus.c,v 1.6 2001/04/24 04:31:05 thorpej Exp $ */
|
||||
/* $NetBSD: bus.c,v 1.7 2001/05/26 21:27:11 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -585,7 +585,7 @@ _bus_dmamem_alloc(t, size, alignment, boundary, segs, nsegs, rsegs, flags)
|
||||
extern paddr_t avail_start, avail_end;
|
||||
vaddr_t curaddr, lastaddr;
|
||||
psize_t high;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
struct pglist mlist;
|
||||
int curseg, error;
|
||||
|
||||
@ -647,7 +647,7 @@ _bus_dmamem_free(t, segs, nsegs)
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
bus_addr_t addr;
|
||||
struct pglist mlist;
|
||||
int curseg;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_dma.c,v 1.21 2001/05/13 16:55:38 chs Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.22 2001/05/26 21:27:12 chs Exp $ */
|
||||
|
||||
/*
|
||||
* This file was taken from from alpha/common/bus_dma.c
|
||||
@ -46,7 +46,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.21 2001/05/13 16:55:38 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.22 2001/05/26 21:27:12 chs Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -529,7 +529,7 @@ _bus_dmamem_alloc(t, size, alignment, boundary, segs, nsegs, rsegs, flags)
|
||||
{
|
||||
extern paddr_t avail_start, avail_end;
|
||||
paddr_t curaddr, lastaddr, high;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
struct pglist mlist;
|
||||
int curseg, error;
|
||||
|
||||
@ -591,7 +591,7 @@ _bus_dmamem_free(t, segs, nsegs)
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
bus_addr_t addr;
|
||||
struct pglist mlist;
|
||||
int curseg;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.9 2001/05/26 16:32:43 chs Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.10 2001/05/26 21:27:12 chs Exp $ */
|
||||
|
||||
/*
|
||||
* This file was taken from from mvme68k/include/pmap.h and
|
||||
@ -101,7 +101,7 @@ typedef struct pmap *pmap_t;
|
||||
}
|
||||
|
||||
/*
|
||||
* For each vm_page_t, there is a list of all currently valid virtual
|
||||
* For each struct vm_page, there is a list of all currently valid virtual
|
||||
* mappings of that page. An entry is a pv_entry, the list is pv_table.
|
||||
*/
|
||||
struct pv_entry {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.32 2001/05/13 16:55:39 chs Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.33 2001/05/26 21:27:12 chs Exp $ */
|
||||
|
||||
/*
|
||||
* This file was taken from mvme68k/mvme68k/pmap.c
|
||||
@ -2744,7 +2744,7 @@ void
|
||||
pmap_ptpage_addref(ptpva)
|
||||
vaddr_t ptpva;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
|
||||
simple_lock(&uvm.kernel_object->vmobjlock);
|
||||
m = uvm_pagelookup(uvm.kernel_object, ptpva - vm_map_min(kernel_map));
|
||||
@ -2761,7 +2761,7 @@ int
|
||||
pmap_ptpage_delref(ptpva)
|
||||
vaddr_t ptpva;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
int rv;
|
||||
|
||||
simple_lock(&uvm.kernel_object->vmobjlock);
|
||||
@ -2811,7 +2811,7 @@ pmap_check_wiring(str, va)
|
||||
{
|
||||
pt_entry_t *pte;
|
||||
paddr_t pa;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
int count;
|
||||
|
||||
if (!pmap_ste_v(pmap_kernel(), va) ||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_dma.c,v 1.28 2001/04/24 04:31:07 thorpej Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.29 2001/05/26 21:27:12 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -546,7 +546,7 @@ _bus_dmamem_alloc(t, size, alignment, boundary, segs, nsegs, rsegs, flags)
|
||||
extern paddr_t avail_start, avail_end; /* XXX */
|
||||
vaddr_t curaddr, lastaddr;
|
||||
psize_t high;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
struct pglist mlist;
|
||||
int curseg, error;
|
||||
|
||||
@ -608,7 +608,7 @@ _bus_dmamem_free(t, segs, nsegs)
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
bus_addr_t addr;
|
||||
struct pglist mlist;
|
||||
int curseg;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.41 2001/04/22 23:42:16 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.42 2001/05/26 21:27:13 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
@ -103,7 +103,7 @@ void pmap_release __P((pmap_t));
|
||||
struct po_page;
|
||||
struct po_page_info {
|
||||
LIST_ENTRY(po_page) pgi_list;
|
||||
vm_page_t pgi_page;
|
||||
struct vm_page *pgi_page;
|
||||
LIST_HEAD(po_freelist, pte_ovfl) pgi_freelist;
|
||||
int pgi_nfree;
|
||||
};
|
||||
@ -812,7 +812,7 @@ poalloc()
|
||||
{
|
||||
struct po_page *pop;
|
||||
struct pte_ovfl *po;
|
||||
vm_page_t mem;
|
||||
struct vm_page *mem;
|
||||
int i;
|
||||
|
||||
if (!pmap_initialized)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_dma.c,v 1.7 2001/04/24 04:31:08 thorpej Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.8 2001/05/26 21:27:13 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -334,7 +334,7 @@ _bus_dmamem_free(t, segs, nsegs)
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
bus_addr_t addr;
|
||||
struct pglist mlist;
|
||||
int curseg;
|
||||
@ -574,7 +574,7 @@ _bus_dmamem_alloc_range(t, size, alignment, boundary, segs, nsegs, rsegs,
|
||||
paddr_t high;
|
||||
{
|
||||
paddr_t curaddr, lastaddr;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
struct pglist mlist;
|
||||
int curseg, error;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_dma.c,v 1.3 2001/04/24 04:31:08 thorpej Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.4 2001/05/26 21:27:13 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -438,7 +438,7 @@ _bus_dmamem_free(t, segs, nsegs)
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
bus_addr_t addr;
|
||||
struct pglist mlist;
|
||||
int curseg;
|
||||
@ -575,7 +575,7 @@ _bus_dmamem_alloc_range(t, size, alignment, boundary, segs, nsegs, rsegs,
|
||||
paddr_t high;
|
||||
{
|
||||
paddr_t curaddr, lastaddr;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
struct pglist mlist;
|
||||
int curseg, error;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus.c,v 1.7 2001/05/11 04:46:22 thorpej Exp $ */
|
||||
/* $NetBSD: bus.c,v 1.8 2001/05/26 21:27:13 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -707,7 +707,7 @@ _bus_dmamem_alloc(t, size, alignment, boundary, segs, nsegs, rsegs, flags)
|
||||
extern paddr_t avail_start, avail_end;
|
||||
vaddr_t curaddr, lastaddr;
|
||||
psize_t high;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
struct pglist mlist;
|
||||
int curseg, error;
|
||||
|
||||
@ -769,7 +769,7 @@ _bus_dmamem_free(t, segs, nsegs)
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
bus_addr_t addr;
|
||||
struct pglist mlist;
|
||||
int curseg;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.22 2001/05/26 16:32:44 chs Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.23 2001/05/26 21:27:14 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Charles D. Cranor and Washington University.
|
||||
@ -2345,7 +2345,7 @@ pmap_test_attrs(pg, testbits)
|
||||
*/
|
||||
|
||||
boolean_t
|
||||
pmap_clear_modify(vm_page_t pg)
|
||||
pmap_clear_modify(struct vm_page *pg)
|
||||
{
|
||||
int bank, off;
|
||||
struct pv_head *pvh;
|
||||
@ -2385,7 +2385,7 @@ pmap_clear_modify(vm_page_t pg)
|
||||
*/
|
||||
|
||||
boolean_t
|
||||
pmap_clear_reference(vm_page_t pg)
|
||||
pmap_clear_reference(struct vm_page *pg)
|
||||
{
|
||||
int bank, off;
|
||||
struct pv_head *pvh;
|
||||
@ -2465,7 +2465,7 @@ pmap_changebit(struct pv_head *pvh, pt_entry_t set, pt_entry_t mask)
|
||||
*/
|
||||
|
||||
void
|
||||
pmap_page_protect(vm_page_t pg, vm_prot_t prot)
|
||||
pmap_page_protect(struct vm_page *pg, vm_prot_t prot)
|
||||
{
|
||||
int bank, off;
|
||||
struct pv_head *pvh;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cpu.c,v 1.117 2001/04/24 04:31:11 thorpej Exp $ */
|
||||
/* $NetBSD: cpu.c,v 1.118 2001/05/26 21:27:14 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
@ -177,7 +177,7 @@ alloc_cpuinfo()
|
||||
vaddr_t va;
|
||||
vsize_t sz;
|
||||
vaddr_t low, high;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
struct pglist mlist;
|
||||
struct cpu_info *cpi;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: iommu.c,v 1.53 2001/05/21 22:44:08 uwe Exp $ */
|
||||
/* $NetBSD: iommu.c,v 1.54 2001/05/26 21:27:15 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
@ -177,7 +177,7 @@ iommu_attach(parent, self, aux)
|
||||
u_int iopte_table_pa;
|
||||
struct pglist mlist;
|
||||
u_int size;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
vaddr_t va;
|
||||
|
||||
/*
|
||||
@ -693,7 +693,7 @@ iommu_dmamap_load_raw(t, map, segs, nsegs, size, flags)
|
||||
bus_size_t size;
|
||||
int flags;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
paddr_t pa;
|
||||
bus_addr_t dva;
|
||||
bus_size_t sgsize;
|
||||
@ -797,7 +797,7 @@ iommu_dmamem_map(t, segs, nsegs, size, kvap, flags)
|
||||
caddr_t *kvap;
|
||||
int flags;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
vaddr_t va;
|
||||
bus_addr_t addr;
|
||||
struct pglist *mlist;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.179 2001/04/24 04:31:11 thorpej Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.180 2001/05/26 21:27:15 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -208,7 +208,7 @@ cpu_startup()
|
||||
#else /* MSGBUFSIZE */
|
||||
{
|
||||
struct pglist mlist;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
vaddr_t va0, va;
|
||||
|
||||
/*
|
||||
@ -1560,7 +1560,7 @@ sun4_dmamap_load_raw(t, map, segs, nsegs, size, flags)
|
||||
bus_size_t size;
|
||||
int flags;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
paddr_t pa;
|
||||
bus_addr_t dva;
|
||||
bus_size_t sgsize;
|
||||
@ -1678,7 +1678,7 @@ sun4_dmamem_map(t, segs, nsegs, size, kvap, flags)
|
||||
caddr_t *kvap;
|
||||
int flags;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
vaddr_t va;
|
||||
struct pglist *mlist;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: iommu.c,v 1.34 2001/05/18 21:35:23 mrg Exp $ */
|
||||
/* $NetBSD: iommu.c,v 1.35 2001/05/26 21:27:15 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999, 2000 Matthew R. Green
|
||||
@ -160,7 +160,7 @@ iommu_init(name, is, tsbsize)
|
||||
psize_t size;
|
||||
vaddr_t va;
|
||||
paddr_t pa;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
struct pglist mlist;
|
||||
|
||||
/*
|
||||
@ -620,7 +620,7 @@ iommu_dvmamap_load_raw(t, is, map, segs, nsegs, flags, size)
|
||||
int flags;
|
||||
bus_size_t size;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
int i, s;
|
||||
int left;
|
||||
int err;
|
||||
@ -889,7 +889,7 @@ iommu_dvmamem_map(t, is, segs, nsegs, size, kvap, flags)
|
||||
caddr_t *kvap;
|
||||
int flags;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
vaddr_t va;
|
||||
bus_addr_t addr;
|
||||
struct pglist *mlist;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cpu.c,v 1.12 2001/04/24 04:31:12 thorpej Exp $ */
|
||||
/* $NetBSD: cpu.c,v 1.13 2001/05/26 21:27:15 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
@ -138,7 +138,7 @@ cpu_init(pa, cpu_num)
|
||||
struct cpu_info *ci;
|
||||
u_int64_t pagesize;
|
||||
u_int64_t pte;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
psize_t size;
|
||||
vaddr_t va;
|
||||
struct pglist mlist;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.104 2001/05/09 19:46:22 kleink Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.105 2001/05/26 21:27:15 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -1423,7 +1423,7 @@ _bus_dmamap_unload(t, map)
|
||||
bus_dmamap_t map;
|
||||
{
|
||||
int i;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
struct pglist *mlist;
|
||||
paddr_t pa;
|
||||
|
||||
@ -1465,7 +1465,7 @@ _bus_dmamap_sync(t, map, offset, len, ops)
|
||||
int ops;
|
||||
{
|
||||
int i;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
struct pglist *mlist;
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.96 2001/05/17 02:31:26 chs Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.97 2001/05/26 21:27:16 chs Exp $ */
|
||||
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
|
||||
#define HWREF
|
||||
/*
|
||||
@ -184,8 +184,8 @@ static paddr_t pseg_find(struct pmap* pm, vaddr_t addr, paddr_t spare) {
|
||||
|
||||
#endif
|
||||
|
||||
extern vm_page_t vm_page_alloc1 __P((void));
|
||||
extern void vm_page_free1 __P((vm_page_t));
|
||||
extern struct vm_page *vm_page_alloc1 __P((void));
|
||||
extern void vm_page_free1 __P((struct vm_page *));
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
@ -201,7 +201,7 @@ extern void vm_page_free1 __P((vm_page_t));
|
||||
#endif
|
||||
|
||||
/*
|
||||
* For each vm_page_t, there is a list of all currently valid virtual
|
||||
* For each struct vm_page, there is a list of all currently valid virtual
|
||||
* mappings of that page. An entry is a pv_entry_t, the list is pv_table.
|
||||
* XXX really should do this as a part of the higher level code.
|
||||
*/
|
||||
@ -217,7 +217,7 @@ typedef struct pv_entry {
|
||||
*
|
||||
* First of all, ref/mod info must be non-volatile. Hence we need to keep it
|
||||
* in the pv_entry structure for each page. (We could bypass this for the
|
||||
* vm_page_t, but that's a long story....)
|
||||
* vm_page, but that's a long story....)
|
||||
*
|
||||
* This architecture has nice, fast traps with lots of space for software bits
|
||||
* in the TTE. To accellerate ref/mod counts we make use of these features.
|
||||
@ -1372,7 +1372,7 @@ remap_data:
|
||||
void
|
||||
pmap_init()
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
paddr_t pa;
|
||||
psize_t size;
|
||||
vaddr_t va;
|
||||
@ -1487,7 +1487,7 @@ pmap_growkernel(maxkvaddr)
|
||||
("pmap_growkernel: extending %lx\n", kbreak));
|
||||
pg = 0;
|
||||
if (uvm.page_init_done || !uvm_page_physget(&pg)) {
|
||||
vm_page_t page;
|
||||
struct vm_page *page;
|
||||
DPRINTF(PDB_GROW,
|
||||
("pmap_growkernel: need to alloc page\n"));
|
||||
while ((page =
|
||||
@ -1546,7 +1546,7 @@ pmap_pinit(pm)
|
||||
simple_lock(&pm->pm_lock);
|
||||
pm->pm_refs = 1;
|
||||
if(pm != pmap_kernel()) {
|
||||
vm_page_t page;
|
||||
struct vm_page *page;
|
||||
#ifdef NOTDEF_DEBUG
|
||||
printf("pmap_pinit: need to alloc page\n");
|
||||
#endif
|
||||
@ -1665,16 +1665,16 @@ pmap_release(pm)
|
||||
}
|
||||
}
|
||||
stxa(pdirentp, ASI_PHYS_CACHED, NULL);
|
||||
vm_page_free1((vm_page_t)PHYS_TO_VM_PAGE((paddr_t)(u_long)ptbl));
|
||||
vm_page_free1(PHYS_TO_VM_PAGE((paddr_t)(u_long)ptbl));
|
||||
}
|
||||
}
|
||||
stxa(psegentp, ASI_PHYS_CACHED, NULL);
|
||||
vm_page_free1((vm_page_t)PHYS_TO_VM_PAGE((paddr_t)(u_long)pdir));
|
||||
vm_page_free1(PHYS_TO_VM_PAGE((paddr_t)(u_long)pdir));
|
||||
}
|
||||
}
|
||||
tmp = (paddr_t)(u_long)pm->pm_segs;
|
||||
pm->pm_segs = NULL;
|
||||
vm_page_free1((vm_page_t)PHYS_TO_VM_PAGE(tmp));
|
||||
vm_page_free1(PHYS_TO_VM_PAGE(tmp));
|
||||
#ifdef NOTDEF_DEBUG
|
||||
for (i=0; i<physmem; i++) {
|
||||
struct pv_entry *pv;
|
||||
@ -1753,14 +1753,14 @@ pmap_collect(pm)
|
||||
if (!n) {
|
||||
/* Free the damn thing */
|
||||
stxa((paddr_t)(u_long)&pdir[k], ASI_PHYS_CACHED, NULL);
|
||||
vm_page_free1((vm_page_t)PHYS_TO_VM_PAGE((paddr_t)(u_long)ptbl));
|
||||
vm_page_free1(PHYS_TO_VM_PAGE((paddr_t)(u_long)ptbl));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!m) {
|
||||
/* Free the damn thing */
|
||||
stxa((paddr_t)(u_long)&pm->pm_segs[i], ASI_PHYS_CACHED, NULL);
|
||||
vm_page_free1((vm_page_t)PHYS_TO_VM_PAGE((paddr_t)(u_long)pdir));
|
||||
vm_page_free1(PHYS_TO_VM_PAGE((paddr_t)(u_long)pdir));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1887,7 +1887,7 @@ pmap_kenter_pa(va, pa, prot)
|
||||
while ((i = pseg_set(pm, va, tte.data.data, pg)) == 1) {
|
||||
pg = NULL;
|
||||
if (uvm.page_init_done || !uvm_page_physget(&pg)) {
|
||||
vm_page_t page;
|
||||
struct vm_page *page;
|
||||
#ifdef NOTDEF_DEBUG
|
||||
printf("pmap_kenter_pa: need to alloc page\n");
|
||||
#endif
|
||||
@ -1912,7 +1912,7 @@ pmap_kenter_pa(va, pa, prot)
|
||||
/* We allocated a spare page but didn't use it. Free it. */
|
||||
printf("pmap_kenter_pa: freeing unused page %llx\n",
|
||||
(long long)pg);
|
||||
vm_page_free1((vm_page_t)PHYS_TO_VM_PAGE(pg));
|
||||
vm_page_free1(PHYS_TO_VM_PAGE(pg));
|
||||
}
|
||||
#ifdef DEBUG
|
||||
i = ptelookup_va(va);
|
||||
@ -2162,7 +2162,7 @@ pmap_enter(pm, va, pa, prot, flags)
|
||||
while (pseg_set(pm, va, tte.data.data, pg) == 1) {
|
||||
pg = NULL;
|
||||
if (uvm.page_init_done || !uvm_page_physget(&pg)) {
|
||||
vm_page_t page;
|
||||
struct vm_page *page;
|
||||
#ifdef NOTDEF_DEBUG
|
||||
printf("pmap_enter: need to alloc page\n");
|
||||
#endif
|
||||
@ -3744,10 +3744,10 @@ pmap_page_cache(pm, pa, mode)
|
||||
*
|
||||
* Allocate and return a memory cell with no associated object.
|
||||
*/
|
||||
vm_page_t
|
||||
struct vm_page *
|
||||
vm_page_alloc1()
|
||||
{
|
||||
vm_page_t pg = uvm_pagealloc(NULL, 0, NULL, UVM_PGA_USERESERVE);
|
||||
struct vm_page *pg = uvm_pagealloc(NULL, 0, NULL, UVM_PGA_USERESERVE);
|
||||
if (pg) {
|
||||
pg->wire_count = 1; /* no mappings yet */
|
||||
pg->flags &= ~PG_BUSY; /* never busy */
|
||||
@ -3765,7 +3765,7 @@ vm_page_alloc1()
|
||||
*/
|
||||
void
|
||||
vm_page_free1(mem)
|
||||
register vm_page_t mem;
|
||||
struct vm_page *mem;
|
||||
{
|
||||
if (mem->flags != (PG_CLEAN|PG_FAKE)) {
|
||||
printf("Freeing invalid page %p\n", mem);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.5 2001/05/14 15:36:42 fredette Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.6 2001/05/26 21:27:16 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 Matthew Fredette.
|
||||
@ -1128,7 +1128,7 @@ _bus_dmamem_map(t, segs, nsegs, size, kvap, flags)
|
||||
caddr_t *kvap;
|
||||
int flags;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
vaddr_t va;
|
||||
struct pglist *mlist;
|
||||
|
||||
@ -1213,7 +1213,7 @@ _bus_dmamap_load_raw(t, map, segs, nsegs, size, flags)
|
||||
bus_size_t size;
|
||||
int flags;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
paddr_t pa;
|
||||
bus_addr_t dva;
|
||||
bus_size_t sgsize;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.9 2001/05/14 15:07:23 fredette Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.10 2001/05/26 21:27:16 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
@ -874,9 +874,6 @@ pmeg_allocate(pmap, va)
|
||||
/*
|
||||
* Remove mappings to free-up a pmeg
|
||||
* (so it will go onto the free list).
|
||||
* XXX - Should this call up into the VM layer
|
||||
* to notify it when pages are deactivated?
|
||||
* See: vm_page.c:vm_page_deactivate(vm_page_t)
|
||||
* XXX - Skip this one if it is wired?
|
||||
*/
|
||||
pmap_remove1(pmegp->pmeg_owner,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.128 2001/04/25 17:35:02 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.129 2001/05/26 21:27:17 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
@ -887,9 +887,6 @@ pmeg_allocate(pmap, va)
|
||||
/*
|
||||
* Remove mappings to free-up a pmeg
|
||||
* (so it will go onto the free list).
|
||||
* XXX - Should this call up into the VM layer
|
||||
* to notify it when pages are deactivated?
|
||||
* See: vm_page.c:vm_page_deactivate(vm_page_t)
|
||||
* XXX - Skip this one if it is wired?
|
||||
*/
|
||||
pmap_remove1(pmegp->pmeg_owner,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.44 2001/04/22 23:19:31 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.45 2001/05/26 21:27:17 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Carnegie-Mellon University
|
||||
@ -76,7 +76,7 @@ typedef struct pmap {
|
||||
} *pmap_t;
|
||||
|
||||
/*
|
||||
* For each vm_page_t, there is a list of all currently valid virtual
|
||||
* For each struct vm_page, there is a list of all currently valid virtual
|
||||
* mappings of that page. An entry is a pv_entry_t, the list is pv_table.
|
||||
*/
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus_dma.c,v 1.11 2001/04/24 04:31:15 thorpej Exp $ */
|
||||
/* $NetBSD: bus_dma.c,v 1.12 2001/05/26 21:27:17 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
@ -393,7 +393,7 @@ _bus_dmamem_free(t, segs, nsegs)
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
bus_addr_t addr;
|
||||
struct pglist mlist;
|
||||
int curseg;
|
||||
@ -688,7 +688,7 @@ _bus_dmamem_alloc_range(t, size, alignment, boundary, segs, nsegs, rsegs,
|
||||
vaddr_t high;
|
||||
{
|
||||
vaddr_t curaddr, lastaddr;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
struct pglist mlist;
|
||||
int curseg, error;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.h,v 1.21 2001/05/26 16:32:46 chs Exp $ */
|
||||
/* $NetBSD: pmap.h,v 1.22 2001/05/26 21:27:18 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Carnegie-Mellon University
|
||||
@ -98,7 +98,7 @@ typedef struct pmap *pmap_t;
|
||||
}
|
||||
|
||||
/*
|
||||
* For each vm_page_t, there is a list of all currently valid virtual
|
||||
* For each struct vm_page, there is a list of all currently valid virtual
|
||||
* mappings of that page. An entry is a pv_entry, the list is pv_table.
|
||||
*/
|
||||
struct pv_entry {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bus.c,v 1.14 2001/04/24 04:31:16 thorpej Exp $ */
|
||||
/* $NetBSD: bus.c,v 1.15 2001/05/26 21:27:18 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -361,7 +361,7 @@ x68k_bus_dmamem_free(t, segs, nsegs)
|
||||
bus_dma_segment_t *segs;
|
||||
int nsegs;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
bus_addr_t addr;
|
||||
struct pglist mlist;
|
||||
int curseg;
|
||||
@ -604,7 +604,7 @@ x68k_bus_dmamem_alloc_range(t, size, alignment, boundary, segs, nsegs, rsegs,
|
||||
paddr_t high;
|
||||
{
|
||||
paddr_t curaddr, lastaddr;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
struct pglist mlist;
|
||||
int curseg, error;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pmap.c,v 1.63 2001/04/24 04:31:16 thorpej Exp $ */
|
||||
/* $NetBSD: pmap.c,v 1.64 2001/05/26 21:27:18 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -2851,7 +2851,7 @@ void
|
||||
pmap_ptpage_addref(ptpva)
|
||||
vaddr_t ptpva;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
|
||||
simple_lock(&uvm.kernel_object->vmobjlock);
|
||||
m = uvm_pagelookup(uvm.kernel_object, ptpva - vm_map_min(kernel_map));
|
||||
@ -2868,7 +2868,7 @@ int
|
||||
pmap_ptpage_delref(ptpva)
|
||||
vaddr_t ptpva;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
int rv;
|
||||
|
||||
simple_lock(&uvm.kernel_object->vmobjlock);
|
||||
@ -2914,7 +2914,7 @@ pmap_check_wiring(str, va)
|
||||
{
|
||||
pt_entry_t *pte;
|
||||
paddr_t pa;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
int count;
|
||||
|
||||
if (!pmap_ste_v(pmap_kernel(), va) ||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vnode_if.c,v 1.34 2001/05/07 08:48:07 lukem Exp $ */
|
||||
/* $NetBSD: vnode_if.c,v 1.35 2001/05/26 21:27:18 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Warning: This file is generated automatically.
|
||||
@ -1614,7 +1614,7 @@ int
|
||||
VOP_GETPAGES(vp, offset, m, count, centeridx, access_type, advice, flags)
|
||||
struct vnode *vp;
|
||||
voff_t offset;
|
||||
vm_page_t *m;
|
||||
struct vm_page **m;
|
||||
int *count;
|
||||
int centeridx;
|
||||
vm_prot_t access_type;
|
||||
@ -1654,7 +1654,7 @@ const struct vnodeop_desc vop_putpages_desc = {
|
||||
int
|
||||
VOP_PUTPAGES(vp, m, count, flags, rtvals)
|
||||
struct vnode *vp;
|
||||
vm_page_t *m;
|
||||
struct vm_page **m;
|
||||
int count;
|
||||
int flags;
|
||||
int *rtvals;
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: vnode_if.src,v 1.26 2000/11/27 08:39:45 chs Exp $
|
||||
# $NetBSD: vnode_if.src,v 1.27 2001/05/26 21:27:19 chs Exp $
|
||||
#
|
||||
# Copyright (c) 1992, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
@ -587,7 +587,7 @@ vop_whiteout {
|
||||
vop_getpages {
|
||||
IN struct vnode *vp;
|
||||
IN voff_t offset;
|
||||
IN vm_page_t *m;
|
||||
IN struct vm_page **m;
|
||||
IN int *count;
|
||||
IN int centeridx;
|
||||
IN vm_prot_t access_type;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: genfs_vnops.c,v 1.32 2001/03/10 22:46:45 chs Exp $ */
|
||||
/* $NetBSD: genfs_vnops.c,v 1.33 2001/05/26 21:27:19 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
@ -431,7 +431,7 @@ genfs_getpages(v)
|
||||
struct vop_getpages_args /* {
|
||||
struct vnode *a_vp;
|
||||
voff_t a_offset;
|
||||
vm_page_t *a_m;
|
||||
struct vm_page **a_m;
|
||||
int *a_count;
|
||||
int a_centeridx;
|
||||
vm_prot_t a_access_type;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: union_vnops.c,v 1.51 2001/04/26 05:25:14 enami Exp $ */
|
||||
/* $NetBSD: union_vnops.c,v 1.52 2001/05/26 21:27:19 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993, 1994, 1995 Jan-Simon Pendry.
|
||||
@ -1981,7 +1981,7 @@ union_getpages(v)
|
||||
struct vop_getpages_args /* {
|
||||
struct vnode *a_vp;
|
||||
voff_t a_offset;
|
||||
vm_page_t *a_m;
|
||||
struct vm_page **a_m;
|
||||
int *a_count;
|
||||
int a_centeridx;
|
||||
vm_prot_t a_access_type;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: nfs_bio.c,v 1.66 2001/04/16 14:37:43 chs Exp $ */
|
||||
/* $NetBSD: nfs_bio.c,v 1.67 2001/05/26 21:27:19 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -971,7 +971,7 @@ nfs_getpages(v)
|
||||
struct vop_getpages_args /* {
|
||||
struct vnode *a_vp;
|
||||
voff_t a_offset;
|
||||
vm_page_t *a_m;
|
||||
struct vm_page **a_m;
|
||||
int *a_count;
|
||||
int a_centeridx;
|
||||
vm_prot_t a_access_type;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: smbfs_io.c,v 1.1 2000/12/07 03:33:46 deberg Exp $ */
|
||||
/* $NetBSD: smbfs_io.c,v 1.2 2001/05/26 21:27:20 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000, Boris Popov
|
||||
@ -404,7 +404,7 @@ int
|
||||
smbfs_getpages(ap)
|
||||
struct vop_getpages_args /* {
|
||||
struct vnode *a_vp;
|
||||
vm_page_t *a_m;
|
||||
struct vm_page **a_m;
|
||||
int a_count;
|
||||
int a_reqpage;
|
||||
vm_ooffset_t a_offset;
|
||||
@ -425,7 +425,7 @@ smbfs_getpages(ap)
|
||||
struct smbmount *smp;
|
||||
struct smbnode *np;
|
||||
struct smb_cred scred;
|
||||
vm_page_t *pages;
|
||||
struct vm_page **pages;
|
||||
|
||||
vp = ap->a_vp;
|
||||
p = curproc; /* XXX */
|
||||
@ -481,7 +481,7 @@ smbfs_getpages(ap)
|
||||
size = count - uio.uio_resid;
|
||||
|
||||
for (i = 0, toff = 0; i < npages; i++, toff = nextoff) {
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
nextoff = toff + PAGE_SIZE;
|
||||
m = pages[i];
|
||||
|
||||
@ -535,7 +535,7 @@ int
|
||||
smbfs_putpages(ap)
|
||||
struct vop_putpages_args /* {
|
||||
struct vnode *a_vp;
|
||||
vm_page_t *a_m;
|
||||
struct vm_page **a_m;
|
||||
int a_count;
|
||||
int a_sync;
|
||||
int *a_rtvals;
|
||||
@ -565,7 +565,7 @@ smbfs_putpages(ap)
|
||||
struct smbmount *smp;
|
||||
struct smbnode *np;
|
||||
struct smb_cred scred;
|
||||
vm_page_t *pages;
|
||||
struct vm_page **pages;
|
||||
|
||||
p = curproc; /* XXX */
|
||||
cred = p->p_ucred; /* XXX */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vnode_if.h,v 1.34 2001/05/07 08:48:07 lukem Exp $ */
|
||||
/* $NetBSD: vnode_if.h,v 1.35 2001/05/26 21:27:20 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Warning: This file is generated automatically.
|
||||
@ -1520,7 +1520,7 @@ struct vop_getpages_args {
|
||||
const struct vnodeop_desc *a_desc;
|
||||
struct vnode *a_vp;
|
||||
voff_t a_offset;
|
||||
vm_page_t *a_m;
|
||||
struct vm_page **a_m;
|
||||
int *a_count;
|
||||
int a_centeridx;
|
||||
vm_prot_t a_access_type;
|
||||
@ -1531,7 +1531,7 @@ extern const struct vnodeop_desc vop_getpages_desc;
|
||||
#ifndef VNODE_OP_NOINLINE
|
||||
static __inline
|
||||
#endif
|
||||
int VOP_GETPAGES(struct vnode *, voff_t, vm_page_t *, int *, int, vm_prot_t,
|
||||
int VOP_GETPAGES(struct vnode *, voff_t, struct vm_page **, int *, int, vm_prot_t,
|
||||
int, int)
|
||||
#ifndef VNODE_OP_NOINLINE
|
||||
__attribute__((__unused__))
|
||||
@ -1541,7 +1541,7 @@ __attribute__((__unused__))
|
||||
static __inline int VOP_GETPAGES(vp, offset, m, count, centeridx, access_type, advice, flags)
|
||||
struct vnode *vp;
|
||||
voff_t offset;
|
||||
vm_page_t *m;
|
||||
struct vm_page **m;
|
||||
int *count;
|
||||
int centeridx;
|
||||
vm_prot_t access_type;
|
||||
@ -1565,7 +1565,7 @@ static __inline int VOP_GETPAGES(vp, offset, m, count, centeridx, access_type, a
|
||||
struct vop_putpages_args {
|
||||
const struct vnodeop_desc *a_desc;
|
||||
struct vnode *a_vp;
|
||||
vm_page_t *a_m;
|
||||
struct vm_page **a_m;
|
||||
int a_count;
|
||||
int a_flags;
|
||||
int *a_rtvals;
|
||||
@ -1574,7 +1574,7 @@ extern const struct vnodeop_desc vop_putpages_desc;
|
||||
#ifndef VNODE_OP_NOINLINE
|
||||
static __inline
|
||||
#endif
|
||||
int VOP_PUTPAGES(struct vnode *, vm_page_t *, int, int, int *)
|
||||
int VOP_PUTPAGES(struct vnode *, struct vm_page **, int, int, int *)
|
||||
#ifndef VNODE_OP_NOINLINE
|
||||
__attribute__((__unused__))
|
||||
#endif
|
||||
@ -1582,7 +1582,7 @@ __attribute__((__unused__))
|
||||
#ifndef VNODE_OP_NOINLINE
|
||||
static __inline int VOP_PUTPAGES(vp, m, count, flags, rtvals)
|
||||
struct vnode *vp;
|
||||
vm_page_t *m;
|
||||
struct vm_page **m;
|
||||
int count;
|
||||
int flags;
|
||||
int *rtvals;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_aobj.c,v 1.42 2001/05/26 16:32:46 chs Exp $ */
|
||||
/* $NetBSD: uvm_aobj.c,v 1.43 2001/05/26 21:27:20 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Chuck Silvers, Charles D. Cranor and
|
||||
@ -177,7 +177,7 @@ static boolean_t uao_flush __P((struct uvm_object *,
|
||||
voff_t, voff_t, int));
|
||||
static void uao_free __P((struct uvm_aobj *));
|
||||
static int uao_get __P((struct uvm_object *, voff_t,
|
||||
vm_page_t *, int *, int,
|
||||
struct vm_page **, int *, int,
|
||||
vm_prot_t, int, int));
|
||||
static boolean_t uao_releasepg __P((struct vm_page *,
|
||||
struct vm_page **));
|
||||
@ -958,7 +958,7 @@ uao_get(uobj, offset, pps, npagesp, centeridx, access_type, advice, flags)
|
||||
{
|
||||
struct uvm_aobj *aobj = (struct uvm_aobj *)uobj;
|
||||
voff_t current_offset;
|
||||
vm_page_t ptmp;
|
||||
struct vm_page *ptmp;
|
||||
int lcv, gotpages, maxpages, swslot, rv, pageidx;
|
||||
boolean_t done;
|
||||
UVMHIST_FUNC("uao_get"); UVMHIST_CALLED(pdhist);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_bio.c,v 1.13 2001/05/25 04:06:12 chs Exp $ */
|
||||
/* $NetBSD: uvm_bio.c,v 1.14 2001/05/26 21:27:20 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Chuck Silvers.
|
||||
@ -54,8 +54,7 @@
|
||||
*/
|
||||
|
||||
static int ubc_fault __P((struct uvm_faultinfo *, vaddr_t,
|
||||
vm_page_t *, int, int, vm_fault_t, vm_prot_t,
|
||||
int));
|
||||
struct vm_page **, int, int, vm_fault_t, vm_prot_t, int));
|
||||
static struct ubc_map *ubc_find_mapping __P((struct uvm_object *, voff_t));
|
||||
|
||||
/*
|
||||
@ -199,7 +198,7 @@ int
|
||||
ubc_fault(ufi, ign1, ign2, ign3, ign4, fault_type, access_type, flags)
|
||||
struct uvm_faultinfo *ufi;
|
||||
vaddr_t ign1;
|
||||
vm_page_t *ign2;
|
||||
struct vm_page **ign2;
|
||||
int ign3, ign4;
|
||||
vm_fault_t fault_type;
|
||||
vm_prot_t access_type;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_device.c,v 1.35 2001/05/26 16:32:47 chs Exp $ */
|
||||
/* $NetBSD: uvm_device.c,v 1.36 2001/05/26 21:27:21 chs Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
@ -68,7 +68,7 @@ static void udv_init __P((void));
|
||||
static void udv_reference __P((struct uvm_object *));
|
||||
static void udv_detach __P((struct uvm_object *));
|
||||
static int udv_fault __P((struct uvm_faultinfo *, vaddr_t,
|
||||
vm_page_t *, int, int, vm_fault_t,
|
||||
struct vm_page **, int, int, vm_fault_t,
|
||||
vm_prot_t, int));
|
||||
static boolean_t udv_flush __P((struct uvm_object *, voff_t, voff_t,
|
||||
int));
|
||||
@ -375,7 +375,7 @@ static int
|
||||
udv_fault(ufi, vaddr, pps, npages, centeridx, fault_type, access_type, flags)
|
||||
struct uvm_faultinfo *ufi;
|
||||
vaddr_t vaddr;
|
||||
vm_page_t *pps;
|
||||
struct vm_page **pps;
|
||||
int npages, centeridx, flags;
|
||||
vm_fault_t fault_type;
|
||||
vm_prot_t access_type;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_extern.h,v 1.63 2001/05/25 04:06:12 chs Exp $ */
|
||||
/* $NetBSD: uvm_extern.h,v 1.64 2001/05/26 21:27:21 chs Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
@ -103,7 +103,6 @@ struct vm_map;
|
||||
typedef struct vm_map *vm_map_t;
|
||||
|
||||
struct vm_page;
|
||||
typedef struct vm_page *vm_page_t;
|
||||
|
||||
/*
|
||||
* defines
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_mmap.c,v 1.51 2001/05/25 04:06:15 chs Exp $ */
|
||||
/* $NetBSD: uvm_mmap.c,v 1.52 2001/05/26 21:27:21 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Charles D. Cranor and Washington University.
|
||||
@ -131,7 +131,7 @@ sys_mincore(p, v, retval)
|
||||
syscallarg(size_t) len;
|
||||
syscallarg(char *) vec;
|
||||
} */ *uap = v;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
char *vec, pgi;
|
||||
struct uvm_object *uobj;
|
||||
struct vm_amap *amap;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_page.c,v 1.62 2001/05/25 04:06:15 chs Exp $ */
|
||||
/* $NetBSD: uvm_page.c,v 1.63 2001/05/26 21:27:21 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Charles D. Cranor and Washington University.
|
||||
@ -237,7 +237,7 @@ uvm_page_init(kvm_startp, kvm_endp)
|
||||
{
|
||||
vsize_t freepages, pagecount, bucketcount, n;
|
||||
struct pgflbucket *bucketarray;
|
||||
vm_page_t pagearray;
|
||||
struct vm_page *pagearray;
|
||||
int lcv, i;
|
||||
paddr_t paddr;
|
||||
|
||||
@ -886,7 +886,7 @@ uvm_page_recolor(int newncolors)
|
||||
{
|
||||
struct pgflbucket *bucketarray, *oldbucketarray;
|
||||
struct pgfreelist pgfl;
|
||||
vm_page_t pg;
|
||||
struct vm_page *pg;
|
||||
vsize_t bucketcount;
|
||||
int s, lcv, color, i, ocolors;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_pager.h,v 1.22 2001/05/25 04:06:16 chs Exp $ */
|
||||
/* $NetBSD: uvm_pager.h,v 1.23 2001/05/26 21:27:21 chs Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
@ -93,15 +93,16 @@ struct uvm_pagerops {
|
||||
__P((struct uvm_object *));
|
||||
int (*pgo_fault) /* special nonstd fault fn */
|
||||
__P((struct uvm_faultinfo *, vaddr_t,
|
||||
vm_page_t *, int, int, vm_fault_t,
|
||||
struct vm_page **, int, int, vm_fault_t,
|
||||
vm_prot_t, int));
|
||||
boolean_t (*pgo_flush) /* flush pages out of obj */
|
||||
__P((struct uvm_object *, voff_t, voff_t, int));
|
||||
int (*pgo_get) /* get/read page */
|
||||
__P((struct uvm_object *, voff_t,
|
||||
vm_page_t *, int *, int, vm_prot_t, int, int));
|
||||
struct vm_page **, int *, int, vm_prot_t, int,
|
||||
int));
|
||||
int (*pgo_put) /* put/write page */
|
||||
__P((struct uvm_object *, vm_page_t *,
|
||||
__P((struct uvm_object *, struct vm_page **,
|
||||
int, boolean_t));
|
||||
void (*pgo_cluster) /* return range of cluster */
|
||||
__P((struct uvm_object *, voff_t, voff_t *,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_pglist.c,v 1.15 2001/05/25 04:06:17 chs Exp $ */
|
||||
/* $NetBSD: uvm_pglist.c,v 1.16 2001/05/26 21:27:21 chs Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
@ -92,10 +92,10 @@ uvm_pglistalloc(size, low, high, alignment, boundary, rlist, nsegs, waitok)
|
||||
int psi;
|
||||
struct vm_page *pgs;
|
||||
int s, tryidx, idx, pgflidx, end, error, free_list, color;
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
u_long pagemask;
|
||||
#ifdef DEBUG
|
||||
vm_page_t tp;
|
||||
struct vm_page *tp;
|
||||
#endif
|
||||
|
||||
KASSERT((alignment & (alignment - 1)) == 0);
|
||||
@ -253,7 +253,7 @@ void
|
||||
uvm_pglistfree(list)
|
||||
struct pglist *list;
|
||||
{
|
||||
vm_page_t m;
|
||||
struct vm_page *m;
|
||||
int s;
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uvm_vnode.c,v 1.49 2001/05/25 04:06:18 chs Exp $ */
|
||||
/* $NetBSD: uvm_vnode.c,v 1.50 2001/05/26 21:27:21 chs Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Charles D. Cranor and Washington University.
|
||||
@ -82,10 +82,11 @@ static int uvn_findpage __P((struct uvm_object *, voff_t,
|
||||
struct vm_page **, int));
|
||||
static boolean_t uvn_flush __P((struct uvm_object *, voff_t, voff_t,
|
||||
int));
|
||||
static int uvn_get __P((struct uvm_object *, voff_t, vm_page_t *,
|
||||
int *, int, vm_prot_t, int, int));
|
||||
static int uvn_put __P((struct uvm_object *, vm_page_t *, int,
|
||||
boolean_t));
|
||||
static int uvn_get __P((struct uvm_object *, voff_t,
|
||||
struct vm_page **, int *, int, vm_prot_t,
|
||||
int, int));
|
||||
static int uvn_put __P((struct uvm_object *, struct vm_page **,
|
||||
int, boolean_t));
|
||||
static void uvn_reference __P((struct uvm_object *));
|
||||
static boolean_t uvn_releasepg __P((struct vm_page *,
|
||||
struct vm_page **));
|
||||
|
Loading…
Reference in New Issue
Block a user