replace vm_map{,_entry}_t with struct vm_map{,_entry} *.

This commit is contained in:
chs 2001-06-02 18:09:08 +00:00
parent c60038a831
commit 821ec03ed9
116 changed files with 618 additions and 608 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.244 2001/05/30 15:24:27 lukem Exp $ */
/* $NetBSD: machdep.c,v 1.245 2001/06/02 18:09:08 chs Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@ -74,7 +74,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.244 2001/05/30 15:24:27 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.245 2001/06/02 18:09:08 chs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -135,9 +135,9 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.244 2001/05/30 15:24:27 lukem Exp $");
#include <machine/alpha.h>
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
caddr_t msgbufaddr;

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.71 2001/04/26 04:21:35 ross Exp $ */
/* $NetBSD: trap.c,v 1.72 2001/06/02 18:09:08 chs Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -99,7 +99,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.71 2001/04/26 04:21:35 ross Exp $");
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.72 2001/06/02 18:09:08 chs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -354,7 +354,7 @@ trap(const u_long a0, const u_long a1, const u_long a2, const u_long entry,
{
register vaddr_t va;
register struct vmspace *vm = NULL;
register vm_map_t map;
register struct vm_map *map;
vm_prot_t ftype;
int rv;

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.162 2001/05/27 20:22:57 is Exp $ */
/* $NetBSD: machdep.c,v 1.163 2001/06/02 18:09:08 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -127,9 +127,9 @@ void fdintr __P((int));
*/
u_int16_t amiga_serialspl = PSL_S|PSL_IPL4;
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
caddr_t msgbufaddr;
paddr_t msgbufpa;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.88 2001/05/26 21:27:03 chs Exp $ */
/* $NetBSD: pmap.c,v 1.89 2001/06/02 18:09:09 chs Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -274,7 +274,7 @@ u_int *Segtabzero, *Segtabzeropa;
vsize_t Sysptsize = VM_KERNEL_PT_PAGES;
struct pmap kernel_pmap_store;
vm_map_t pt_map;
struct vm_map *pt_map;
struct vm_map pt_map_store;
vsize_t mem_size; /* memory size in bytes */

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.84 2001/03/18 23:43:53 chs Exp $ */
/* $NetBSD: trap.c,v 1.85 2001/06/02 18:09:09 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -180,7 +180,7 @@ int mmudebug = 0;
extern struct pcb *curpcb;
extern char fubail[], subail[];
int _write_back __P((u_int, u_int, u_int, u_int, vm_map_t));
int _write_back __P((u_int, u_int, u_int, u_int, struct vm_map *));
static void userret __P((struct proc *, int, u_quad_t));
void panictrap __P((int, u_int, u_int, struct frame *));
void trapcpfault __P((struct proc *, struct frame *));
@ -296,11 +296,11 @@ trapmmufault(type, code, v, fp, p, sticks)
static u_int oldcode=0, oldv=0;
static struct proc *oldp=0;
#endif
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
struct vmspace *vm = NULL;
vm_prot_t ftype;
vaddr_t va;
vm_map_t map;
struct vm_map *map;
u_int nss;
int rv;
@ -457,7 +457,7 @@ trapmmufault(type, code, v, fp, p, sticks)
/* Check WB3 */
if(fp->f_fmt7.f_wb3s & WBS_VALID) {
vm_map_t wb3_map;
struct vm_map *wb3_map;
if ((fp->f_fmt7.f_wb3s & WBS_TMMASK) == WBS_TM_SDATA)
wb3_map = kernel_map;
@ -752,7 +752,7 @@ _write_back (wb, wb_sts, wb_data, wb_addr, wb_map)
u_int wb_sts; /* writeback status information */
u_int wb_data; /* data to writeback */
u_int wb_addr; /* address to writeback to */
vm_map_t wb_map;
struct vm_map *wb_map;
{
u_int wb_extra_page = 0;
u_int wb_rc, mmusr;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.57 2001/04/24 04:30:52 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.58 2001/06/02 18:09:09 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -326,7 +326,7 @@ kvtop(addr)
return (pa);
}
extern vm_map_t phys_map;
extern struct vm_map *phys_map;
/*
* Map a user I/O request into kernel virtual address space.

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.11 2001/04/24 04:30:52 thorpej Exp $ */
/* $NetBSD: machdep.c,v 1.12 2001/06/02 18:09:09 chs Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -81,9 +81,9 @@ int imask[NIPL];
/* Our exported CPU info; we can have only one. */
struct cpu_info cpu_info_store;
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
struct bat battable[16];
extern int aga_enable, eclockfreq;

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.60 2001/05/17 14:53:54 tsutsui Exp $ */
/* $NetBSD: machdep.c,v 1.61 2001/06/02 18:09:09 chs Exp $ */
/* $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $ */
/*
@ -179,9 +179,9 @@ char cpu_model[30];
struct cpu_info cpu_info_store;
/* maps for VM objects */
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
int maxmem; /* max memory per process */
int physmem; /* max supported memory, changes to actual */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pbcpcibus.c,v 1.6 2001/01/13 10:46:18 ur Exp $ */
/* $NetBSD: pbcpcibus.c,v 1.7 2001/06/02 18:09:10 chs Exp $ */
/* $OpenBSD: pbcpcibus.c,v 1.7 1998/03/25 11:52:48 pefo Exp $ */
/*
@ -57,7 +57,7 @@
#include <arc/pci/pcibrvar.h>
#include <arc/pci/v962pcbreg.h>
extern vm_map_t phys_map;
extern struct vm_map *phys_map;
extern char eth_hw_addr[]; /* Hardware ethernet address stored elsewhere */
int pbcpcibrmatch __P((struct device *, struct cfdata *, void *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: except.c,v 1.33 2001/06/02 11:17:32 bjh21 Exp $ */
/* $NetBSD: except.c,v 1.34 2001/06/02 18:09:10 chs Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 Ben Harris
* All rights reserved.
@ -32,7 +32,7 @@
#include <sys/param.h>
__KERNEL_RCSID(0, "$NetBSD: except.c,v 1.33 2001/06/02 11:17:32 bjh21 Exp $");
__KERNEL_RCSID(0, "$NetBSD: except.c,v 1.34 2001/06/02 18:09:10 chs Exp $");
#include "opt_cputypes.h"
#include "opt_ddb.h"
@ -66,8 +66,8 @@ __KERNEL_RCSID(0, "$NetBSD: except.c,v 1.33 2001/06/02 11:17:32 bjh21 Exp $");
#endif
void syscall(struct trapframe *);
static void do_fault(struct trapframe *, struct proc *, vm_map_t, vaddr_t,
vm_prot_t);
static void do_fault(struct trapframe *, struct proc *, struct vm_map *,
vaddr_t, vm_prot_t);
static void data_abort_fixup(struct trapframe *);
static vaddr_t data_abort_address(struct trapframe *, vsize_t *);
static vm_prot_t data_abort_atype(struct trapframe *);
@ -399,7 +399,7 @@ data_abort_handler(struct trapframe *tf)
struct proc *p;
vm_prot_t atype;
boolean_t usrmode, twopages;
vm_map_t map;
struct vm_map *map;
/*
* Data aborts in kernel mode are possible (copyout etc), so
@ -445,7 +445,7 @@ data_abort_handler(struct trapframe *tf)
*/
void
do_fault(struct trapframe *tf, struct proc *p,
vm_map_t map, vaddr_t va, vm_prot_t atype)
struct vm_map *map, vaddr_t va, vm_prot_t atype)
{
int error;
struct pcb *curpcb;

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.9 2001/04/29 15:13:45 bjh21 Exp $ */
/* $NetBSD: machdep.c,v 1.10 2001/06/02 18:09:10 chs Exp $ */
/*-
* Copyright (c) 1998 Ben Harris
@ -33,7 +33,7 @@
#include <sys/param.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.9 2001/04/29 15:13:45 bjh21 Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.10 2001/06/02 18:09:10 chs Exp $");
#include <sys/buf.h>
#include <sys/mbuf.h>
@ -52,9 +52,9 @@ char cpu_model[] = "Archimedes";
/* Our exported CPU info; we can have only one. */
struct cpu_info cpu_info_store;
vm_map_t exec_map = NULL;
vm_map_t phys_map = NULL;
vm_map_t mb_map = NULL; /* and ever more shall be so */
struct vm_map *exec_map = NULL;
struct vm_map *phys_map = NULL;
struct vm_map *mb_map = NULL; /* and ever more shall be so */
void
cpu_reboot(howto, b)

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.16 2001/06/02 10:44:02 bjh21 Exp $ */
/* $NetBSD: vm_machdep.c,v 1.17 2001/06/02 18:09:10 chs Exp $ */
/*-
* Copyright (c) 2000, 2001 Ben Harris
@ -66,7 +66,7 @@
#include <sys/param.h>
__RCSID("$NetBSD: vm_machdep.c,v 1.16 2001/06/02 10:44:02 bjh21 Exp $");
__RCSID("$NetBSD: vm_machdep.c,v 1.17 2001/06/02 18:09:10 chs Exp $");
#include <sys/buf.h>
#include <sys/mount.h> /* XXX syscallargs.h uses fhandle_t and fsid_t */
@ -81,7 +81,7 @@ __RCSID("$NetBSD: vm_machdep.c,v 1.16 2001/06/02 10:44:02 bjh21 Exp $");
#include <machine/intr.h>
#include <machine/machdep.h>
extern vm_map_t phys_map; /* XXX where? */
extern struct vm_map *phys_map; /* XXX where? */
/*
* Finish a fork operation, with process p2 nearly set up.

View File

@ -1,4 +1,4 @@
/* $NetBSD: fault.c,v 1.52 2001/03/15 06:10:36 chs Exp $ */
/* $NetBSD: fault.c,v 1.53 2001/06/02 18:09:10 chs Exp $ */
/*
* Copyright (c) 1994-1997 Mark Brinicombe.
@ -319,10 +319,10 @@ copyfault:
{
register vaddr_t va;
register struct vmspace *vm = p->p_vmspace;
register vm_map_t map;
register struct vm_map *map;
int rv;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
va = trunc_page((vaddr_t)fault_address);

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.96 2001/05/13 13:44:34 bjh21 Exp $ */
/* $NetBSD: machdep.c,v 1.97 2001/06/02 18:09:10 chs Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -94,9 +94,9 @@
#include "opt_mdsize.h"
#include "md.h"
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
extern int physmem;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.57 2001/04/24 04:30:54 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.58 2001/06/02 18:09:10 chs Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -296,7 +296,7 @@ pagemove(from, to, size)
cpu_tlb_flushD();
}
extern vm_map_t phys_map;
extern struct vm_map *phys_map;
/*
* Map a user I/O request into kernel virtual address space.

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.109 2001/05/15 13:57:43 leo Exp $ */
/* $NetBSD: machdep.c,v 1.110 2001/06/02 18:09:11 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -102,9 +102,9 @@ void straytrap __P((int, u_short));
void nmihandler __P((void));
#endif
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
caddr_t msgbufaddr;
vaddr_t msgbufpa;

View File

@ -274,7 +274,7 @@ u_int *Segtabzero, *Segtabzeropa;
vsize_t Sysptsize = VM_KERNEL_PT_PAGES;
struct pmap kernel_pmap_store;
vm_map_t pt_map;
struct vm_map *pt_map;
struct vm_map pt_map_store;
vsize_t mem_size; /* memory size in bytes */

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.60 2001/05/30 15:24:28 lukem Exp $ */
/* $NetBSD: trap.c,v 1.61 2001/06/02 18:09:11 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -577,10 +577,10 @@ trap(type, code, v, frame)
{
register vaddr_t va;
register struct vmspace *vm = p->p_vmspace;
register vm_map_t map;
register struct vm_map *map;
int rv;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map * kernel_map;
#ifdef DEBUG
if ((mmudebug & MDB_WBFOLLOW) || MDB_ISPID(p->p_pid))

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.35 2001/04/24 04:30:55 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.36 2001/06/02 18:09:11 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -324,7 +324,7 @@ kvtop(addr)
return(pa);
}
extern vm_map_t phys_map;
extern struct vm_map *phys_map;
/*
* Map a user I/O request into kernel virtual address space.

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.61 2001/04/24 04:30:56 thorpej Exp $ */
/* $NetBSD: machdep.c,v 1.62 2001/06/02 18:09:11 chs Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -99,9 +99,9 @@
/*
* Global variables used here and there
*/
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
char bootinfo[BOOTINFO_MAXSIZE];

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.31 2001/04/24 15:41:39 thorpej Exp $ */
/* $NetBSD: machdep.c,v 1.32 2001/06/02 18:09:11 chs Exp $ */
/*
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
@ -84,9 +84,9 @@ char cpu_model[] = "Cobalt Microserver";
struct cpu_info cpu_info_store;
/* Maps for VM objects. */
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
int physmem; /* Total physical memory */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.146 2001/04/24 04:30:56 thorpej Exp $ */
/* $NetBSD: machdep.c,v 1.147 2001/06/02 18:09:12 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -114,9 +114,9 @@ char machine[] = MACHINE; /* from <machine/param.h> */
/* Our exported CPU info; we can have only one. */
struct cpu_info cpu_info_store;
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
extern paddr_t avail_end;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.93 2001/05/26 21:27:06 chs Exp $ */
/* $NetBSD: pmap.c,v 1.94 2001/06/02 18:09:12 chs Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -249,7 +249,7 @@ st_entry_t *Segtabzero, *Segtabzeropa;
vsize_t Sysptsize = VM_KERNEL_PT_PAGES;
struct pmap kernel_pmap_store;
vm_map_t st_map, pt_map;
struct vm_map *st_map, *pt_map;
struct vm_map st_map_store, pt_map_store;
paddr_t avail_start; /* PA of first available physical page */

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.89 2001/05/30 15:24:29 lukem Exp $ */
/* $NetBSD: trap.c,v 1.90 2001/06/02 18:09:12 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -561,10 +561,10 @@ trap(type, code, v, frame)
{
vaddr_t va;
struct vmspace *vm = p->p_vmspace;
vm_map_t map;
struct vm_map *map;
int rv;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
#ifdef DEBUG
if ((mmudebug & MDB_WBFOLLOW) || MDB_ISPID(p->p_pid))

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.58 2001/04/24 04:30:57 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.59 2001/06/02 18:09:12 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -284,7 +284,7 @@ kvtop(addr)
return((int)pa);
}
extern vm_map_t phys_map;
extern struct vm_map *phys_map;
/*
* Map a user I/O request into kernel virtual address space.

View File

@ -1,4 +1,4 @@
/* $NetBSD: fault.c,v 1.4 2001/03/21 14:40:00 toshii Exp $ */
/* $NetBSD: fault.c,v 1.5 2001/06/02 18:09:12 chs Exp $ */
/*
* Copyright (c) 1994-1997 Mark Brinicombe.
@ -327,10 +327,10 @@ copyfault:
{
register vm_offset_t va;
register struct vmspace *vm = p->p_vmspace;
register vm_map_t map;
register struct vm_map *map;
int rv;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
va = trunc_page((vm_offset_t)fault_address);

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.9 2001/05/13 13:44:35 bjh21 Exp $ */
/* $NetBSD: machdep.c,v 1.10 2001/06/02 18:09:12 chs Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -74,9 +74,9 @@
#include "md.h"
#include "opt_mdsize.h"
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
extern int physmem;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.4 2001/04/24 04:30:57 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.5 2001/06/02 18:09:12 chs Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -303,7 +303,7 @@ pagemove(from, to, size)
cpu_tlb_flushD();
}
extern vm_map_t phys_map;
extern struct vm_map *phys_map;
/*
* Map a user I/O request into kernel virtual address space.

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.54 2001/05/30 15:24:30 lukem Exp $ */
/* $NetBSD: machdep.c,v 1.55 2001/06/02 18:09:13 chs Exp $ */
/*-
* Copyright (c) 1999 Shin Takemura, All rights reserved.
@ -72,7 +72,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.54 2001/05/30 15:24:30 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.55 2001/06/02 18:09:13 chs Exp $");
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
#include "opt_vr41xx.h"
@ -172,9 +172,9 @@ struct cpu_info cpu_info_store;
#define VPRINTF(arg) if (bootverbose) printf arg;
/* maps for VM objects */
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
int systype; /* mother board type */
int physmem; /* max supported memory, changes to actual */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.443 2001/05/30 15:24:31 lukem Exp $ */
/* $NetBSD: machdep.c,v 1.444 2001/06/02 18:09:13 chs Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@ -211,9 +211,9 @@ paddr_t idt_paddr;
vaddr_t pentium_idt_vaddr;
#endif
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
extern paddr_t avail_start, avail_end;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.126 2001/05/27 14:31:27 sommerfeld Exp $ */
/* $NetBSD: pmap.c,v 1.127 2001/06/02 18:09:13 chs Exp $ */
/*
*
@ -1254,7 +1254,7 @@ pmap_free_pvpage()
{
int s;
struct vm_map *map;
vm_map_entry_t dead_entries;
struct vm_map_entry *dead_entries;
struct pv_page *pvp;
s = splvm(); /* protect kmem_map */

View File

@ -1,4 +1,4 @@
/* $NetBSD: sys_machdep.c,v 1.56 2001/02/14 01:29:46 nathanw Exp $ */
/* $NetBSD: sys_machdep.c,v 1.57 2001/06/02 18:09:13 chs Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -72,7 +72,7 @@
#include <machine/pmc.h>
#endif
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
int i386_iopl __P((struct proc *, void *, register_t *));
int i386_get_ioperm __P((struct proc *, void *, register_t *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.157 2001/05/30 15:24:31 lukem Exp $ */
/* $NetBSD: trap.c,v 1.158 2001/06/02 18:09:14 chs Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@ -356,9 +356,9 @@ copyfault:
case T_PAGEFLT|T_USER: { /* page fault */
register vaddr_t va;
register struct vmspace *vm = p->p_vmspace;
register vm_map_t map;
register struct vm_map *map;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
unsigned nss;
if (vm == NULL)

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.98 2001/04/24 04:30:59 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.99 2001/06/02 18:09:14 chs Exp $ */
/*-
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
@ -352,7 +352,7 @@ kvtop(addr)
return((int)pa);
}
extern vm_map_t phys_map;
extern struct vm_map *phys_map;
/*
* Map a user I/O request into kernel virtual address space.

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.16 2001/05/30 15:24:31 lukem Exp $ */
/* $NetBSD: machdep.c,v 1.17 2001/06/02 18:09:14 chs Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -38,7 +38,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.16 2001/05/30 15:24:31 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.17 2001/06/02 18:09:14 chs Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -101,9 +101,9 @@ struct cpu_info cpu_info_store;
extern char kernel_text[];
extern char etext[];
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
caddr_t msgbufaddr;
int maxmem; /* max memory per process */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.13 2001/05/26 21:27:08 chs Exp $ */
/* $NetBSD: pmap.c,v 1.14 2001/06/02 18:09:14 chs Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@ -246,7 +246,7 @@ st_entry_t *Segtabzero, *Segtabzeropa;
vsize_t Sysptsize = VM_KERNEL_PT_PAGES;
struct pmap kernel_pmap_store;
vm_map_t st_map, pt_map;
struct vm_map *st_map, *pt_map;
struct vm_map st_map_store, pt_map_store;
paddr_t avail_start; /* PA of first available physical page */

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.16 2001/05/30 15:24:31 lukem Exp $ */
/* $NetBSD: trap.c,v 1.17 2001/06/02 18:09:14 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -44,7 +44,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.16 2001/05/30 15:24:31 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.17 2001/06/02 18:09:14 chs Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -499,10 +499,10 @@ trap(type, code, v, frame)
{
vaddr_t va;
struct vmspace *vm = p->p_vmspace;
vm_map_t map;
struct vm_map *map;
int rv;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
#ifdef DEBUG
if ((mmudebug & MDB_WBFOLLOW) || MDB_ISPID(p->p_pid))

View File

@ -1,5 +1,5 @@
/* $NetBSD: vm_machdep.c,v 1.6 2001/04/24 04:31:00 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.6 2001/04/24 04:31:00 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.7 2001/06/02 18:09:14 chs Exp $ */
/* $NetBSD: vm_machdep.c,v 1.7 2001/06/02 18:09:14 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.6 2001/04/24 04:31:00 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.7 2001/06/02 18:09:14 chs Exp $");
#include "opt_compat_hpux.h"
@ -297,7 +297,7 @@ kvtop(addr)
return((int)pa);
}
extern vm_map_t phys_map;
extern struct vm_map *phys_map;
/*
* Map a user I/O request into kernel virtual address space.

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.263 2001/05/30 15:24:32 lukem Exp $ */
/* $NetBSD: machdep.c,v 1.264 2001/06/02 18:09:14 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -184,9 +184,9 @@ u_int32_t mac68k_vidlen; /* mem length */
int (*mac68k_bell_callback) __P((void *, int, int, int));
caddr_t mac68k_bell_cookie;
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
caddr_t msgbufaddr;
int maxmem; /* max memory per process */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.76 2001/05/26 21:27:08 chs Exp $ */
/* $NetBSD: pmap.c,v 1.77 2001/06/02 18:09:15 chs Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -244,7 +244,7 @@ st_entry_t *Segtabzero, *Segtabzeropa;
vsize_t Sysptsize = VM_KERNEL_PT_PAGES;
struct pmap kernel_pmap_store;
vm_map_t st_map, pt_map;
struct vm_map *st_map, *pt_map;
struct vm_map st_map_store, pt_map_store;
paddr_t avail_start; /* PA of first available physical page */

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.94 2001/05/30 15:24:32 lukem Exp $ */
/* $NetBSD: trap.c,v 1.95 2001/06/02 18:09:15 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -549,10 +549,10 @@ copyfault:
{
vaddr_t va;
struct vmspace *vm = p->p_vmspace;
vm_map_t map;
struct vm_map *map;
int rv;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
#ifdef DEBUG
if ((mmudebug & MDB_WBFOLLOW) || MDB_ISPID(p->p_pid))

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.49 2001/04/24 04:31:02 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.50 2001/06/02 18:09:15 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -284,7 +284,7 @@ kvtop(addr)
return((int)pa);
}
extern vm_map_t phys_map;
extern struct vm_map *phys_map;
/*
* Map a user I/O request into kernel virtual address space.

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.95 2001/04/24 04:31:02 thorpej Exp $ */
/* $NetBSD: machdep.c,v 1.96 2001/06/02 18:09:15 chs Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -71,9 +71,9 @@
#include <dev/usb/ukbdvar.h>
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
/*
* Global variables used here and there

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.162 2001/05/30 15:24:33 lukem Exp $ */
/* $NetBSD: trap.c,v 1.163 2001/06/02 18:09:15 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -44,7 +44,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.162 2001/05/30 15:24:33 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.163 2001/06/02 18:09:15 chs Exp $");
#include "opt_cputype.h" /* which mips CPU levels do we support? */
#include "opt_ktrace.h"
@ -329,7 +329,7 @@ trap(status, cause, vaddr, opc, frame)
{
vaddr_t va;
struct vmspace *vm;
vm_map_t map;
struct vm_map *map;
int rv;
vm = p->p_vmspace;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.79 2001/05/31 19:41:57 soda Exp $ */
/* $NetBSD: vm_machdep.c,v 1.80 2001/06/02 18:09:16 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -45,7 +45,7 @@
#include "opt_ddb.h"
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.79 2001/05/31 19:41:57 soda Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.80 2001/06/02 18:09:16 chs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -278,7 +278,7 @@ pagemove(from, to, size)
}
}
extern vm_map_t phys_map;
extern struct vm_map *phys_map;
/*
* Map a user I/O request into kernel virtual address space.

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.26 2001/05/30 15:24:34 lukem Exp $ */
/* $NetBSD: machdep.c,v 1.27 2001/06/02 18:09:16 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -43,7 +43,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.26 2001/05/30 15:24:34 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.27 2001/06/02 18:09:16 chs Exp $");
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
@ -114,9 +114,9 @@ struct cpu_info cpu_info_store;
/* maps for VM objects */
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
int physmem; /* max supported memory, changes to actual */
char *bootinfo = NULL; /* pointer to bootinfo structure */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.81 2001/05/31 18:46:09 scw Exp $ */
/* $NetBSD: machdep.c,v 1.82 2001/06/02 18:09:16 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -109,9 +109,9 @@ char machine[] = MACHINE; /* from <machine/param.h> */
/* Our exported CPU info; we can have only one. */
struct cpu_info cpu_info_store;
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
/*
* Model information, filled in by the Bug; see locore.s

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.61 2001/05/26 21:27:10 chs Exp $ */
/* $NetBSD: pmap.c,v 1.62 2001/06/02 18:09:16 chs Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -256,7 +256,7 @@ st_entry_t *Segtabzero, *Segtabzeropa;
vsize_t Sysptsize = VM_KERNEL_PT_PAGES;
struct pmap kernel_pmap_store;
vm_map_t st_map, pt_map;
struct vm_map *st_map, *pt_map;
struct vm_map st_map_store, pt_map_store;
paddr_t avail_start; /* PA of first available physical page */

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.57 2001/05/30 15:24:34 lukem Exp $ */
/* $NetBSD: trap.c,v 1.58 2001/06/02 18:09:16 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -589,10 +589,10 @@ trap(type, code, v, frame)
{
vaddr_t va;
struct vmspace *vm = p->p_vmspace;
vm_map_t map;
struct vm_map *map;
int rv;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
#ifdef DEBUG
if ((mmudebug & MDB_WBFOLLOW) || MDB_ISPID(p->p_pid))

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.38 2001/04/24 04:31:04 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.39 2001/06/02 18:09:16 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -247,7 +247,7 @@ kvtop(addr)
return(pa);
}
extern vm_map_t phys_map;
extern struct vm_map *phys_map;
/*
* Map a user I/O request into kernel virtual address space.

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.20 2001/04/24 04:31:04 thorpej Exp $ */
/* $NetBSD: machdep.c,v 1.21 2001/06/02 18:09:17 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -101,9 +101,9 @@ char machine[] = MACHINE; /* from <machine/param.h> */
/* Our exported CPU info; we can have only one. */
struct cpu_info cpu_info_store;
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
caddr_t msgbufaddr;
int maxmem; /* max memory per process */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.15 2001/05/26 21:27:11 chs Exp $ */
/* $NetBSD: pmap.c,v 1.16 2001/06/02 18:09:17 chs Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -247,7 +247,7 @@ st_entry_t *Segtabzero, *Segtabzeropa;
vsize_t Sysptsize = VM_KERNEL_PT_PAGES;
struct pmap kernel_pmap_store;
vm_map_t st_map, pt_map;
struct vm_map *st_map, *pt_map;
struct vm_map st_map_store, pt_map_store;
paddr_t avail_start; /* PA of first available physical page */

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.16 2001/05/30 15:24:35 lukem Exp $ */
/* $NetBSD: trap.c,v 1.17 2001/06/02 18:09:17 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -520,10 +520,10 @@ trap(type, code, v, frame)
{
vaddr_t va;
struct vmspace *vm = p->p_vmspace;
vm_map_t map;
struct vm_map *map;
int rv;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
#ifdef DEBUG
if ((mmudebug & MDB_WBFOLLOW) || MDB_ISPID(p->p_pid))

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.57 2001/04/24 15:41:40 thorpej Exp $ */
/* $NetBSD: machdep.c,v 1.58 2001/06/02 18:09:17 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -43,7 +43,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.57 2001/04/24 15:41:40 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.58 2001/06/02 18:09:17 chs Exp $");
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
@ -111,9 +111,9 @@ struct cpu_info cpu_info_store;
/* maps for VM objects */
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
char *bootinfo = NULL; /* pointer to bootinfo structure */
int physmem; /* max supported memory, changes to actual */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.43 2001/05/30 15:24:35 lukem Exp $ */
/* $NetBSD: machdep.c,v 1.44 2001/06/02 18:09:17 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -113,9 +113,9 @@ char machine[] = MACHINE; /* from <machine/param.h> */
/* Our exported CPU info; we can have only one. */
struct cpu_info cpu_info_store;
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
caddr_t msgbufaddr; /* KVA of message buffer */
paddr_t msgbufpa; /* PA of message buffer */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.33 2001/05/26 21:27:12 chs Exp $ */
/* $NetBSD: pmap.c,v 1.34 2001/06/02 18:09:17 chs Exp $ */
/*
* This file was taken from mvme68k/mvme68k/pmap.c
@ -308,7 +308,7 @@ st_entry_t *Segtabzero, *Segtabzeropa;
vsize_t Sysptsize = VM_KERNEL_PT_PAGES;
struct pmap kernel_pmap_store;
vm_map_t st_map, pt_map;
struct vm_map *st_map, *pt_map;
struct vm_map st_map_store, pt_map_store;
paddr_t avail_start; /* PA of first available physical page */

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.33 2001/05/30 15:24:35 lukem Exp $ */
/* $NetBSD: trap.c,v 1.34 2001/06/02 18:09:18 chs Exp $ */
/*
* This file was taken from mvme68k/mvme68k/trap.c
@ -569,10 +569,10 @@ trap(type, code, v, frame)
{
vaddr_t va;
struct vmspace *vm = p->p_vmspace;
vm_map_t map;
struct vm_map *map;
int rv;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
#ifdef DEBUG
if ((mmudebug & MDB_WBFOLLOW) || MDB_ISPID(p->p_pid))

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.23 2001/05/28 22:16:17 chs Exp $ */
/* $NetBSD: vm_machdep.c,v 1.24 2001/06/02 18:09:18 chs Exp $ */
/*
* This file was taken from mvme68k/mvme68k/vm_machdep.c
@ -238,7 +238,7 @@ pagemove(from, to, size)
pmap_update();
}
extern vm_map_t phys_map;
extern struct vm_map *phys_map;
/*
* Map a user I/O request into kernel virtual address space.

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.64 2001/04/24 04:31:06 thorpej Exp $ */
/* $NetBSD: machdep.c,v 1.65 2001/06/02 18:09:18 chs Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -66,9 +66,9 @@ struct cpu_info cpu_info_store;
/*
* Global variables used here and there
*/
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
struct pcb *curpcb;
struct pmap *curpm;

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.122 2001/05/30 15:24:36 lukem Exp $ */
/* $NetBSD: machdep.c,v 1.123 2001/06/02 18:09:18 chs Exp $ */
/*-
* Copyright (c) 1996 Matthias Pfaller.
@ -120,9 +120,9 @@ int boothowto;
vaddr_t msgbuf_vaddr;
paddr_t msgbuf_paddr;
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
extern char etext[], end[];
#if defined(DDB)

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.62 2001/06/02 16:47:17 matthias Exp $ */
/* $NetBSD: pmap.c,v 1.63 2001/06/02 18:09:18 chs Exp $ */
/*
*
@ -1165,7 +1165,7 @@ pmap_free_pvpage()
{
int s;
struct vm_map *map;
vm_map_entry_t dead_entries;
struct vm_map_entry *dead_entries;
struct pv_page *pvp;
s = splvm(); /* protect kmem_map */

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.45 2001/05/30 15:24:36 lukem Exp $ */
/* $NetBSD: trap.c,v 1.46 2001/06/02 18:09:18 chs Exp $ */
/*-
* Copyright (c) 1996 Matthias Pfaller. All rights reserved.
@ -356,10 +356,10 @@ trap(frame)
case T_ABT | T_USER: { /* page fault */
vaddr_t va;
struct vmspace *vm = p->p_vmspace;
vm_map_t map;
struct vm_map *map;
int rv;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
unsigned nss;
va = trunc_page((vaddr_t)frame.tf_tear);

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.47 2001/04/24 04:31:07 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.48 2001/06/02 18:09:19 chs Exp $ */
/*-
* Copyright (c) 1996 Matthias Pfaller.
@ -319,7 +319,7 @@ kvtop(addr)
return((int)pa);
}
extern vm_map_t phys_map;
extern struct vm_map *phys_map;
/*
* Map a user I/O request into kernel virtual address space.

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.191 2001/04/24 15:41:40 thorpej Exp $ */
/* $NetBSD: machdep.c,v 1.192 2001/06/02 18:09:19 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.191 2001/04/24 15:41:40 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.192 2001/06/02 18:09:19 chs Exp $");
#include "fs_mfs.h"
#include "opt_ddb.h"
@ -94,9 +94,9 @@ unsigned ssir; /* simulated interrupt register */
struct cpu_info cpu_info_store;
/* maps for VM objects */
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
int systype; /* mother board type */
char *bootinfo = NULL; /* pointer to bootinfo structure */

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.41 2001/03/22 04:11:46 tsubai Exp $ */
/* $NetBSD: trap.c,v 1.42 2001/06/02 18:09:19 chs Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -98,7 +98,7 @@ trap(frame)
break;
case EXC_DSI:
{
vm_map_t map;
struct vm_map *map;
vaddr_t va;
faultbuf *fb;

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.17 2001/04/24 04:31:08 thorpej Exp $ */
/* $NetBSD: machdep.c,v 1.18 2001/06/02 18:09:20 chs Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -119,9 +119,9 @@ struct cpu_info cpu_info_store;
/*
* Global variables used here and there
*/
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
char bootinfo[BOOTINFO_MAXSIZE];

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.9 2001/04/24 04:31:08 thorpej Exp $ */
/* $NetBSD: machdep.c,v 1.10 2001/06/02 18:09:20 chs Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -107,9 +107,9 @@ void isa_intr_init(void);
/*
* Global variables used here and there
*/
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
char machine[] = MACHINE; /* machine */
char machine_arch[] = MACHINE_ARCH; /* machine architecture */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.15 2001/05/11 04:53:25 thorpej Exp $ */
/* $NetBSD: machdep.c,v 1.16 2001/06/02 18:09:20 chs Exp $ */
/*
* Copyright (c) 2000 Soren S. Jorvang
@ -96,9 +96,9 @@ struct cpu_info cpu_info_store;
unsigned long cpuspeed; /* Approximate number of instructions per usec */
/* Maps for VM objects. */
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
int mach_type; /* IPxx type */
int mach_subtype; /* subtype: eg., Guiness/Fullhouse for IP22 */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.23 2001/05/26 21:27:14 chs Exp $ */
/* $NetBSD: pmap.c,v 1.24 2001/06/02 18:09:20 chs Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@ -1257,7 +1257,7 @@ pmap_free_pvpage()
{
int s;
struct vm_map *map;
vm_map_entry_t dead_entries;
struct vm_map_entry *dead_entries;
struct pv_page *pvp;
s = splvm(); /* protect kmem_map */

View File

@ -1,4 +1,4 @@
/* $NetBSD: sh3_machdep.c,v 1.14 2001/05/30 15:24:37 lukem Exp $ */
/* $NetBSD: sh3_machdep.c,v 1.15 2001/06/02 18:09:20 chs Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -101,9 +101,9 @@ char cpu_model[120];
/* Our exported CPU info; we can have only one. */
struct cpu_info cpu_info_store;
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
extern int physmem;

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.25 2001/05/30 15:24:37 lukem Exp $ */
/* $NetBSD: trap.c,v 1.26 2001/06/02 18:09:21 chs Exp $ */
/*-
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
@ -322,10 +322,10 @@ trap(p1, p2, p3, p4, frame)
case T_PAGEFLT|T_USER: { /* page fault */
register vaddrt_t va;
register struct vmspace *vm = p->p_vmspace;
register vm_map_t map;
register struct vm_map *map;
int rv;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
unsigned nss, v;
va = trunc_page((vaddr_t)rcr2());
@ -608,11 +608,11 @@ tlb_handler(p1, p2, p3, p4, frame)
int pte_index;
struct proc *p;
struct vmspace *vm;
vm_map_t map;
struct vm_map *map;
int rv = 0;
u_quad_t sticks = 0;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
vaddr_t va_save;
unsigned long pteh_save;
int exptype, user;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.14 2001/04/24 04:31:09 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.15 2001/06/02 18:09:21 chs Exp $ */
/*-
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
@ -255,7 +255,7 @@ pagemove(from, to, size)
TLBFLUSH();
}
extern vm_map_t phys_map;
extern struct vm_map *phys_map;
/*
* Map an IO request into kernel virtual address space. Requests fall into

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.180 2001/05/26 21:27:15 chs Exp $ */
/* $NetBSD: machdep.c,v 1.181 2001/06/02 18:09:21 chs Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -136,8 +136,8 @@
#include <sparc/dev/tctrlvar.h>
#endif
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
extern paddr_t avail_end;
int physmem;

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.105 2001/05/26 21:27:15 chs Exp $ */
/* $NetBSD: machdep.c,v 1.106 2001/06/02 18:09:21 chs Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -139,8 +139,8 @@ int bus_space_debug = 1; /* This may be used by macros elsewhere. */
#define DPRINTF(l, s)
#endif
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
extern vaddr_t avail_end;
int physmem;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.7 2001/05/26 16:32:45 chs Exp $ */
/* $NetBSD: pmap.h,v 1.8 2001/06/02 18:09:21 chs Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -68,7 +68,7 @@ extern struct pmap kernel_pmap_store;
* This function does that, and calls vm_fault if it
* could not resolve the fault by reloading the MMU.
*/
int _pmap_fault __P((vm_map_t, vm_offset_t, vm_prot_t));
int _pmap_fault __P((struct vm_map *, vm_offset_t, vm_prot_t));
/* This lets us have some say in choosing VA locations. */
extern void pmap_prefer(vm_offset_t, vm_offset_t *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.7 2001/05/30 15:24:38 lukem Exp $ */
/* $NetBSD: machdep.c,v 1.8 2001/06/02 18:09:22 chs Exp $ */
/*
* Copyright (c) 2001 Matthew Fredette.
@ -194,9 +194,9 @@ extern char etext[];
/* Our exported CPU info; we can have only one. */
struct cpu_info cpu_info_store;
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
int physmem;
int fputype;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.10 2001/05/26 21:27:16 chs Exp $ */
/* $NetBSD: pmap.c,v 1.11 2001/06/02 18:09:22 chs Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -439,7 +439,7 @@ current_pmap __P((void))
{
struct proc *p;
struct vmspace *vm;
vm_map_t map;
struct vm_map *map;
pmap_t pmap;
p = curproc; /* XXX */
@ -2450,7 +2450,7 @@ pmap_kremove(va, len)
*/
int
_pmap_fault(map, va, ftype)
vm_map_t map;
struct vm_map *map;
vm_offset_t va;
vm_prot_t ftype;
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.2 2001/05/30 15:24:38 lukem Exp $ */
/* $NetBSD: trap.c,v 1.3 2001/06/02 18:09:22 chs Exp $ */
/*
* Copyright (c) 1994 Gordon W. Ross
@ -456,10 +456,10 @@ trap(type, code, v, tf)
case T_MMUFLT|T_USER: { /* page fault */
register vm_offset_t va;
register struct vmspace *vm = p->p_vmspace;
register vm_map_t map;
register struct vm_map *map;
int rv;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
#ifdef DEBUG
if ((mmudebug & MDB_WBFOLLOW) || MDB_ISPID(p->p_pid))

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap3.h,v 1.31 2001/05/26 16:32:45 chs Exp $ */
/* $NetBSD: pmap3.h,v 1.32 2001/06/02 18:09:22 chs Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -59,7 +59,7 @@ extern struct pmap kernel_pmap_store;
* This function does that, and calls vm_fault if it
* could not resolve the fault by reloading the MMU.
*/
int _pmap_fault __P((vm_map_t, vm_offset_t, vm_prot_t));
int _pmap_fault __P((struct vm_map *, vm_offset_t, vm_prot_t));
/* This lets us have some say in choosing VA locations. */
extern void pmap_prefer(vm_offset_t, vm_offset_t *);

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.147 2001/05/30 15:24:38 lukem Exp $ */
/* $NetBSD: machdep.c,v 1.148 2001/06/02 18:09:22 chs Exp $ */
/*
* Copyright (c) 1994, 1995 Gordon W. Ross
@ -103,9 +103,9 @@ extern char etext[];
/* Our exported CPU info; we can have only one. */
struct cpu_info cpu_info_store;
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
int physmem;
int fputype;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.129 2001/05/26 21:27:17 chs Exp $ */
/* $NetBSD: pmap.c,v 1.130 2001/06/02 18:09:22 chs Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -452,7 +452,7 @@ current_pmap __P((void))
{
struct proc *p;
struct vmspace *vm;
vm_map_t map;
struct vm_map *map;
pmap_t pmap;
p = curproc; /* XXX */
@ -2482,7 +2482,7 @@ pmap_kremove(va, len)
*/
int
_pmap_fault(map, va, ftype)
vm_map_t map;
struct vm_map *map;
vm_offset_t va;
vm_prot_t ftype;
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.100 2001/05/30 15:24:39 lukem Exp $ */
/* $NetBSD: trap.c,v 1.101 2001/06/02 18:09:23 chs Exp $ */
/*
* Copyright (c) 1994 Gordon W. Ross
@ -466,10 +466,10 @@ trap(type, code, v, tf)
case T_MMUFLT|T_USER: { /* page fault */
register vm_offset_t va;
register struct vmspace *vm = p->p_vmspace;
register vm_map_t map;
register struct vm_map *map;
int rv;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
#ifdef DEBUG
if ((mmudebug & MDB_WBFOLLOW) || MDB_ISPID(p->p_pid))

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.69 2001/05/30 15:24:39 lukem Exp $ */
/* $NetBSD: machdep.c,v 1.70 2001/06/02 18:09:23 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -101,9 +101,9 @@ extern char etext[];
/* Our exported CPU info; we can have only one. */
struct cpu_info cpu_info_store;
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
int physmem;
int fputype;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.66 2001/04/25 17:35:03 thorpej Exp $ */
/* $NetBSD: pmap.c,v 1.67 2001/06/02 18:09:23 chs Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -536,7 +536,7 @@ current_pmap()
{
struct proc *p;
struct vmspace *vm;
vm_map_t map;
struct vm_map *map;
pmap_t pmap;
p = curproc; /* XXX */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.116 2001/05/29 21:28:15 ragge Exp $ */
/* $NetBSD: machdep.c,v 1.117 2001/06/02 18:09:23 chs Exp $ */
/*
* Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden.
@ -111,9 +111,9 @@ int symtab_nsyms;
#define IOMAPSZ 100
static struct map iomap[IOMAPSZ];
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
#ifdef DEBUG
int iospace_inited = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.62 2001/05/29 21:27:25 ragge Exp $ */
/* $NetBSD: trap.c,v 1.63 2001/06/02 18:09:24 chs Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@ -146,7 +146,7 @@ trap(struct trapframe *frame)
u_int rv, addr, umode;
struct proc *p = curproc;
u_quad_t oticks = 0;
vm_map_t map;
struct vm_map *map;
vm_prot_t ftype;
uvmexp.traps++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.72 2001/05/29 21:26:44 ragge Exp $ */
/* $NetBSD: vm_machdep.c,v 1.73 2001/06/02 18:09:24 chs Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@ -309,7 +309,7 @@ iounaccess(vaddr, npgs)
mtpr(0, PR_TBIA);
}
extern vm_map_t phys_map;
extern struct vm_map *phys_map;
/*
* Map a user I/O request into kernel virtual address space.

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.98 2001/05/30 15:24:40 lukem Exp $ */
/* $NetBSD: machdep.c,v 1.99 2001/06/02 18:09:24 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -118,9 +118,9 @@ char machine[] = MACHINE; /* from <machine/param.h> */
/* Our exported CPU info; we can have only one. */
struct cpu_info cpu_info_store;
vm_map_t exec_map = NULL;
vm_map_t mb_map = NULL;
vm_map_t phys_map = NULL;
struct vm_map *exec_map = NULL;
struct vm_map *mb_map = NULL;
struct vm_map *phys_map = NULL;
extern paddr_t avail_start, avail_end;
extern vaddr_t virtual_avail;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.64 2001/05/26 21:27:18 chs Exp $ */
/* $NetBSD: pmap.c,v 1.65 2001/06/02 18:09:24 chs Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -255,7 +255,7 @@ st_entry_t *Segtabzero, *Segtabzeropa;
vsize_t Sysptsize = VM_KERNEL_PT_PAGES;
struct pmap kernel_pmap_store;
vm_map_t st_map, pt_map;
struct vm_map *st_map, *pt_map;
struct vm_map st_map_store, pt_map_store;
paddr_t avail_start; /* PA of first available physical page */

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.53 2001/05/30 15:24:40 lukem Exp $ */
/* $NetBSD: trap.c,v 1.54 2001/06/02 18:09:24 chs Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -610,10 +610,10 @@ trap(type, code, v, frame)
{
vaddr_t va;
struct vmspace *vm = p->p_vmspace;
vm_map_t map;
struct vm_map *map;
int rv;
vm_prot_t ftype;
extern vm_map_t kernel_map;
extern struct vm_map *kernel_map;
#ifdef DEBUG
if ((mmudebug & MDB_WBFOLLOW) || MDB_ISPID(p->p_pid))

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_break.c,v 1.14 2000/06/26 14:21:09 mrg Exp $ */
/* $NetBSD: db_break.c,v 1.15 2001/06/02 18:09:24 chs Exp $ */
/*
* Mach Operating System
@ -78,7 +78,7 @@ db_breakpoint_free(bkpt)
void
db_set_breakpoint(map, addr, count)
vm_map_t map;
struct vm_map *map;
db_addr_t addr;
int count;
{
@ -107,7 +107,7 @@ db_set_breakpoint(map, addr, count)
void
db_delete_breakpoint(map, addr)
vm_map_t map;
struct vm_map *map;
db_addr_t addr;
{
db_breakpoint_t bkpt;
@ -132,7 +132,7 @@ db_delete_breakpoint(map, addr)
db_breakpoint_t
db_find_breakpoint(map, addr)
vm_map_t map;
struct vm_map *map;
db_addr_t addr;
{
db_breakpoint_t bkpt;
@ -271,7 +271,8 @@ db_listbreak_cmd(addr, have_addr, count, modif)
boolean_t
db_map_equal(map1, map2)
vm_map_t map1, map2;
struct vm_map *map1;
struct vm_map *map2;
{
return ((map1 == map2) ||
((map1 == NULL) && (map2 == kernel_map)) ||
@ -280,7 +281,7 @@ db_map_equal(map1, map2)
boolean_t
db_map_current(map)
vm_map_t map;
struct vm_map *map;
{
#if 0
thread_t thread;
@ -294,7 +295,7 @@ db_map_current(map)
#endif
}
vm_map_t
struct vm_map *
db_map_addr(addr)
vaddr_t addr;
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_break.h,v 1.14 2000/06/27 17:55:38 mrg Exp $ */
/* $NetBSD: db_break.h,v 1.15 2001/06/02 18:09:25 chs Exp $ */
/*
* Mach Operating System
@ -38,7 +38,7 @@
* Breakpoints.
*/
typedef struct db_breakpoint {
vm_map_t map; /* in this map */
struct vm_map *map; /* in this map */
db_addr_t address; /* set here */
int init_count; /* number of times to skip bkpt */
int count; /* current count */
@ -51,9 +51,9 @@ typedef struct db_breakpoint {
db_breakpoint_t db_breakpoint_alloc __P((void));
void db_breakpoint_free __P((db_breakpoint_t));
void db_set_breakpoint __P((vm_map_t, db_addr_t, int));
void db_delete_breakpoint __P((vm_map_t, db_addr_t));
db_breakpoint_t db_find_breakpoint __P((vm_map_t, db_addr_t));
void db_set_breakpoint __P((struct vm_map *, db_addr_t, int));
void db_delete_breakpoint __P((struct vm_map *, db_addr_t));
db_breakpoint_t db_find_breakpoint __P((struct vm_map *, db_addr_t));
db_breakpoint_t db_find_breakpoint_here __P((db_addr_t));
void db_set_breakpoints __P((void));
void db_clear_breakpoints __P((void));
@ -61,8 +61,8 @@ void db_list_breakpoints __P((void));
void db_delete_cmd __P((db_expr_t, int, db_expr_t, char *));
void db_breakpoint_cmd __P((db_expr_t, int, db_expr_t, char *));
void db_listbreak_cmd __P((db_expr_t, int, db_expr_t, char *));
boolean_t db_map_equal __P((vm_map_t, vm_map_t));
boolean_t db_map_current __P((vm_map_t));
vm_map_t db_map_addr __P((vaddr_t));
boolean_t db_map_equal __P((struct vm_map *, struct vm_map *));
boolean_t db_map_current __P((struct vm_map *));
struct vm_map *db_map_addr __P((vaddr_t));
#endif /* _DDB_DB_BREAK_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_command.c,v 1.58 2001/05/30 11:42:12 mrg Exp $ */
/* $NetBSD: db_command.c,v 1.59 2001/06/02 18:09:25 chs Exp $ */
/*
* Mach Operating System
@ -353,7 +353,7 @@ db_map_print_cmd(addr, have_addr, count, modif)
if (modif[0] == 'f')
full = TRUE;
uvm_map_printit((vm_map_t) addr, full, db_printf);
uvm_map_printit((struct vm_map *) addr, full, db_printf);
}
/*ARGSUSED*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_watch.c,v 1.14 2001/04/24 04:31:17 thorpej Exp $ */
/* $NetBSD: db_watch.c,v 1.15 2001/06/02 18:09:25 chs Exp $ */
/*
* Mach Operating System
@ -85,7 +85,7 @@ db_watchpoint_free(watch)
void
db_set_watchpoint(map, addr, size)
vm_map_t map;
struct vm_map *map;
db_addr_t addr;
vsize_t size;
{
@ -128,7 +128,7 @@ db_set_watchpoint(map, addr, size)
void
db_delete_watchpoint(map, addr)
vm_map_t map;
struct vm_map *map;
db_addr_t addr;
{
db_watchpoint_t watch;
@ -240,7 +240,7 @@ db_clear_watchpoints()
boolean_t
db_find_watchpoint(map, addr, regs)
vm_map_t map;
struct vm_map *map;
db_addr_t addr;
db_regs_t *regs;
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_watch.h,v 1.13 2001/02/15 21:59:38 cgd Exp $ */
/* $NetBSD: db_watch.h,v 1.14 2001/06/02 18:09:25 chs Exp $ */
/*
* Mach Operating System
@ -36,7 +36,7 @@
* Watchpoint.
*/
typedef struct db_watchpoint {
vm_map_t map; /* in this map */
struct vm_map *map; /* in this map */
db_addr_t loaddr; /* from this address */
db_addr_t hiaddr; /* to this address */
struct db_watchpoint *link; /* link in in-use or free chain */
@ -44,14 +44,14 @@ typedef struct db_watchpoint {
db_watchpoint_t db_watchpoint_alloc __P((void));
void db_watchpoint_free __P((db_watchpoint_t));
void db_set_watchpoint __P((vm_map_t, db_addr_t, vsize_t));
void db_delete_watchpoint __P((vm_map_t, db_addr_t));
void db_set_watchpoint __P((struct vm_map *, db_addr_t, vsize_t));
void db_delete_watchpoint __P((struct vm_map *, db_addr_t));
void db_list_watchpoints __P((void));
void db_deletewatch_cmd __P((db_expr_t, int, db_expr_t, char *));
void db_watchpoint_cmd __P((db_expr_t, int, db_expr_t, char *));
void db_listwatch_cmd __P((db_expr_t, int, db_expr_t, char *));
void db_set_watchpoints __P((void));
void db_clear_watchpoints __P((void));
boolean_t db_find_watchpoint __P((vm_map_t, db_addr_t, db_regs_t *));
boolean_t db_find_watchpoint __P((struct vm_map *, db_addr_t, db_regs_t *));
#endif /* _DDB_DB_WATCH_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_malloc.c,v 1.57 2001/01/18 20:28:18 jdolecek Exp $ */
/* $NetBSD: kern_malloc.c,v 1.58 2001/06/02 18:09:25 chs Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@ -48,7 +48,7 @@
#include <uvm/uvm_extern.h>
static struct vm_map_intrsafe kmem_map_store;
vm_map_t kmem_map = NULL;
struct vm_map *kmem_map = NULL;
#include "opt_kmempages.h"

View File

@ -1,4 +1,4 @@
/* $NetBSD: procfs_map.c,v 1.12 2001/04/02 07:16:05 pk Exp $ */
/* $NetBSD: procfs_map.c,v 1.13 2001/06/02 18:09:25 chs Exp $ */
/*
* Copyright (c) 1993 Jan-Simon Pendry
@ -77,8 +77,8 @@ procfs_domap(struct proc *curp, struct proc *p, struct pfsnode *pfs,
{
int len;
int error, buf_full;
vm_map_t map = &p->p_vmspace->vm_map;
vm_map_entry_t entry;
struct vm_map *map = &p->p_vmspace->vm_map;
struct vm_map_entry *entry;
char mebuffer[MEBUFFERSIZE];
char *path;
struct vnode *vp;

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm.h,v 1.28 2001/05/30 11:57:17 mrg Exp $ */
/* $NetBSD: uvm.h,v 1.29 2001/06/02 18:09:25 chs Exp $ */
/*
*
@ -109,7 +109,7 @@ struct uvm {
struct simplelock afreelock; /* lock on anon free list */
/* static kernel map entry pool */
vm_map_entry_t kentry_free; /* free page pool */
struct vm_map_entry *kentry_free; /* free page pool */
struct simplelock kentry_lock;
/* aio_done is locked by uvm.pagedaemon_lock and splbio! */

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm_amap.c,v 1.31 2001/05/25 04:06:11 chs Exp $ */
/* $NetBSD: uvm_amap.c,v 1.32 2001/06/02 18:09:25 chs Exp $ */
/*
*
@ -284,7 +284,7 @@ amap_free(amap)
*/
void
amap_extend(entry, addsize)
vm_map_entry_t entry;
struct vm_map_entry *entry;
vsize_t addsize;
{
struct vm_amap *amap = entry->aref.ar_amap;
@ -453,7 +453,7 @@ amap_extend(entry, addsize)
*/
void
amap_share_protect(entry, prot)
vm_map_entry_t entry;
struct vm_map_entry *entry;
vm_prot_t prot;
{
struct vm_amap *amap = entry->aref.ar_amap;
@ -556,8 +556,8 @@ amap_wipeout(amap)
void
amap_copy(map, entry, waitf, canchunk, startva, endva)
vm_map_t map;
vm_map_entry_t entry;
struct vm_map *map;
struct vm_map_entry *entry;
int waitf;
boolean_t canchunk;
vaddr_t startva, endva;

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm_amap.h,v 1.16 2001/05/26 16:32:46 chs Exp $ */
/* $NetBSD: uvm_amap.h,v 1.17 2001/06/02 18:09:25 chs Exp $ */
/*
*
@ -87,12 +87,12 @@ void amap_add /* add an anon to an amap */
struct vm_amap *amap_alloc /* allocate a new amap */
__P((vaddr_t, vaddr_t, int));
void amap_copy /* clear amap needs-copy flag */
__P((vm_map_t, vm_map_entry_t, int,
__P((struct vm_map *, struct vm_map_entry *, int,
boolean_t, vaddr_t, vaddr_t));
void amap_cow_now /* resolve all COW faults now */
__P((vm_map_t, vm_map_entry_t));
__P((struct vm_map *, struct vm_map_entry *));
void amap_extend /* make amap larger */
__P((vm_map_entry_t, vsize_t));
__P((struct vm_map_entry *, vsize_t));
int amap_flags /* get amap's flags */
__P((struct vm_amap *));
void amap_free /* free amap */
@ -114,7 +114,7 @@ void amap_ref /* add a reference to an amap */
int amap_refs /* get number of references of amap */
__P((struct vm_amap *));
void amap_share_protect /* protect pages in a shared amap */
__P((vm_map_entry_t, vm_prot_t));
__P((struct vm_map_entry *, vm_prot_t));
void amap_splitref /* split reference to amap into two */
__P((struct vm_aref *, struct vm_aref *,
vaddr_t));

Some files were not shown because too many files have changed in this diff Show More