Now that all ports have pmap_activate(), and it has an identical interface,

prototype it in <vm/pmap.h>
This commit is contained in:
thorpej 1998-01-03 01:12:59 +00:00
parent b73f9750f6
commit b9f1b716f3
21 changed files with 25 additions and 95 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.new.h,v 1.7 1997/10/14 15:29:50 mjacob Exp $ */
/* $NetBSD: pmap.new.h,v 1.8 1998/01/03 01:12:59 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993, 1996 Carnegie Mellon University
@ -153,9 +153,6 @@ boolean_t cpu_update_needed[NCPUS];
* External declarations for PMAP_ACTIVATE.
*/
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
void process_pmap_updates();
void pmap_update_interrupt();
int pmap_tlbpid_assign __P((pmap_t));

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.old.h,v 1.12 1997/11/17 00:11:22 ross Exp $ */
/* $NetBSD: pmap.old.h,v 1.13 1998/01/03 01:13:00 thorpej Exp $ */
/*
* Copyright (c) 1987 Carnegie-Mellon University
@ -129,9 +129,6 @@ extern pt_entry_t *Sysmap;
extern char *vmmap; /* map for mem, dumps, etc. */
/* Machine-specific functions. */
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
void pmap_bootstrap __P((vm_offset_t firstaddr, vm_offset_t ptaddr));
void pmap_emulate_reference __P((struct proc *p, vm_offset_t v,
int user, int write));

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.19 1998/01/01 20:05:23 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.20 1998/01/03 01:13:01 thorpej Exp $ */
/*
* Copyright (c) 1987 Carnegie-Mellon University
@ -146,10 +146,6 @@ struct pmap kernel_pmap_store;
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
#endif /* _KERNEL */
#endif /* !_MACHINE_PMAP_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.9 1998/01/02 22:36:35 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.10 1998/01/03 01:13:01 thorpej Exp $ */
/*
* Copyright (c) 1994,1995 Mark Brinicombe.
@ -133,9 +133,6 @@ extern struct pmap kernel_pmap_store;
boolean_t pmap_testbit __P((vm_offset_t, int));
void pmap_changebit __P((vm_offset_t, int, int));
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
static __inline vm_offset_t
pmap_phys_address(int ppn)
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.13 1998/01/01 20:05:24 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.14 1998/01/03 01:13:02 thorpej Exp $ */
/*
* Copyright (c) 1987 Carnegie-Mellon University
@ -169,9 +169,6 @@ struct pmap kernel_pmap_store;
void pmap_bootstrap __P((vm_offset_t, u_int, u_int));
void pmap_changebit __P((vm_offset_t, int, boolean_t));
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
#endif /* _KERNEL */
#endif /* !_MACHINE_PMAP_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.4 1998/01/02 22:17:19 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.5 1998/01/03 01:13:03 thorpej Exp $ */
/*-
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -72,10 +72,6 @@ extern struct pmap kernel_pmap_;
void pmap_bootstrap __P((u_int kernelstart, u_int kernelend));
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
#define vtophys(va) ((int)(pmap_extract(pmap_kernel(), (vm_offset_t)va)))
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.15 1998/01/01 20:05:25 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.16 1998/01/03 01:13:04 thorpej Exp $ */
/*
* Copyright (c) 1987 Carnegie-Mellon University
@ -152,10 +152,6 @@ extern struct pv_entry *pv_table; /* array of entries, one per page */
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
extern pt_entry_t *Sysmap;
extern char *vmmap; /* map for mem, dumps, etc. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.29 1997/12/07 21:30:11 fvdl Exp $ */
/* $NetBSD: pmap.h,v 1.30 1998/01/03 01:13:05 thorpej Exp $ */
/*
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
@ -203,10 +203,6 @@ pmap_phys_address(int ppn)
return i386_ptob(ppn);
}
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
#endif /* _KERNEL */
#endif /* _I386_PMAP_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.18 1998/01/01 20:05:26 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.19 1998/01/03 01:13:06 thorpej Exp $ */
/*
* Copyright (c) 1987 Carnegie-Mellon University
@ -200,10 +200,6 @@ void pmap_pvdump __P((vm_offset_t));
void pmap_check_wiring __P((char *, vm_offset_t));
void pmap_collect_pv __P((void));
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
/* pmap_bootstrap.c */
void pmap_bootstrap __P((vm_offset_t, register vm_offset_t));
void bootstrap_mac68k __P((int));

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.15 1997/08/09 03:41:02 jonathan Exp $ */
/* $NetBSD: pmap.h,v 1.16 1998/01/03 01:13:07 thorpej Exp $ */
/*
* Copyright (c) 1987 Carnegie-Mellon University
@ -121,9 +121,6 @@ void pmap_bootstrap __P((vm_offset_t firstaddr));
void pmap_prefer __P((vm_offset_t, vm_offset_t *));
#endif /* MIPS3 */
void pmap_activate __P((register struct proc *p));
/*
* Kernel cache operations for the user-space API
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.5 1998/01/01 20:05:27 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.6 1998/01/03 01:13:08 thorpej Exp $ */
/*
* Copyright (c) 1987 Carnegie-Mellon University
@ -153,10 +153,6 @@ extern struct pv_entry *pv_table; /* array of entries, one per page */
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
extern pt_entry_t *Sysmap;
extern char *vmmap; /* map for mem, dumps, etc. */
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.3 1998/01/02 22:17:22 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.4 1998/01/03 01:13:09 thorpej Exp $ */
/*-
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -72,10 +72,6 @@ extern struct pmap kernel_pmap_;
void pmap_bootstrap __P((u_int kernelstart, u_int kernelend));
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
#endif /* _KERNEL */
#endif /* _LOCORE */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.17 1998/01/02 22:43:31 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.18 1998/01/03 01:13:08 thorpej Exp $ */
/*
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
@ -155,9 +155,6 @@ struct pv_entry *pv_table; /* array of entries, one per page */
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
#define pmap_update() tlbflush()
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
void pmap_bootstrap __P((vm_offset_t start));
pt_entry_t *pmap_pte __P((pmap_t, vm_offset_t));
boolean_t pmap_testbit __P((vm_offset_t, int));

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.3 1998/01/02 22:17:22 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.4 1998/01/03 01:13:09 thorpej Exp $ */
/*-
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -72,10 +72,6 @@ extern struct pmap kernel_pmap_;
void pmap_bootstrap __P((u_int kernelstart, u_int kernelend));
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
#endif /* _KERNEL */
#endif /* _LOCORE */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.22 1998/01/02 20:37:34 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.23 1998/01/03 01:13:10 thorpej Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -57,10 +57,6 @@ typedef struct pmap *pmap_t;
extern struct pmap kernel_pmap_store;
#define pmap_kernel() (&kernel_pmap_store)
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
/*
* We give the pmap code a chance to resolve faults by
* reloading translations that it was forced to unload.

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap3.h,v 1.22 1998/01/02 20:37:34 thorpej Exp $ */
/* $NetBSD: pmap3.h,v 1.23 1998/01/03 01:13:10 thorpej Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -57,10 +57,6 @@ typedef struct pmap *pmap_t;
extern struct pmap kernel_pmap_store;
#define pmap_kernel() (&kernel_pmap_store)
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
/*
* We give the pmap code a chance to resolve faults by
* reloading translations that it was forced to unload.

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap3x.h,v 1.5 1998/01/02 20:10:32 thorpej Exp $ */
/* $NetBSD: pmap3x.h,v 1.6 1998/01/03 01:13:11 thorpej Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -56,10 +56,6 @@ typedef struct pmap *pmap_t;
extern struct pmap kernel_pmap;
#define pmap_kernel() (&kernel_pmap)
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
#define _pmap_fault(map, va, ftype) \
vm_fault(map, va, ftype, 0)

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.5 1998/01/02 20:10:32 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.6 1998/01/03 01:13:11 thorpej Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -56,10 +56,6 @@ typedef struct pmap *pmap_t;
extern struct pmap kernel_pmap;
#define pmap_kernel() (&kernel_pmap)
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
#define _pmap_fault(map, va, ftype) \
vm_fault(map, va, ftype, 0)

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.22 1998/01/03 00:28:43 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.23 1998/01/03 01:13:12 thorpej Exp $ */
/*
* Copyright (c) 1987 Carnegie-Mellon University
@ -122,8 +122,4 @@ void pmap_bootstrap __P((void));
void pmap_pinit __P((pmap_t));
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
#endif PMAP_H

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.4 1998/01/01 20:05:28 thorpej Exp $ */
/* $NetBSD: pmap.h,v 1.5 1998/01/03 01:13:13 thorpej Exp $ */
/*
* Copyright (c) 1987 Carnegie-Mellon University
@ -154,10 +154,6 @@ extern struct pv_entry *pv_table; /* array of entries, one per page */
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
#define pmap_wired_count(pmap) ((pmap)->pm_stats.wired_count)
struct proc;
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
extern pt_entry_t *Sysmap;
extern char *vmmap; /* map for mem, dumps, etc. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.16 1996/03/31 22:15:32 pk Exp $ */
/* $NetBSD: pmap.h,v 1.17 1998/01/03 01:13:14 thorpej Exp $ */
/*
* Copyright (c) 1991, 1993
@ -72,6 +72,8 @@
#ifndef _PMAP_VM_
#define _PMAP_VM_
struct proc; /* for pmap_activate()/pmap_deactivate() proto */
/*
* Each machine dependent implementation is expected to
* keep certain statistics. They may do this anyway they
@ -94,6 +96,8 @@ void *pmap_bootstrap_alloc __P((int));
/* Does not belong here! */
void pmap_bootstrap( /* machine dependent */ );
#endif
void pmap_activate __P((struct proc *));
void pmap_deactivate __P((struct proc *));
void pmap_change_wiring __P((pmap_t, vm_offset_t, boolean_t));
void pmap_clear_modify __P((vm_offset_t pa));
void pmap_clear_reference __P((vm_offset_t pa));