summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-08-18 20:50:19 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-08-18 20:50:19 +0000
commit75dec7ea0de96f57689fbfe3889a5530555f99c3 (patch)
tree73c92ef9e188aae9707dfef43480bae2eb4c02ca /sys
parent6e5f789df65574e2aa594128398b8a37788805d3 (diff)
Move pmap_{de,}activate to vm/pmap.h, it's same on all archs.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/alpha/include/pmap.h4
-rw-r--r--sys/arch/amiga/include/pmap.h5
-rw-r--r--sys/arch/hp300/include/pmap.h6
-rw-r--r--sys/arch/i386/include/pmap.h4
-rw-r--r--sys/arch/mac68k/include/pmap.h6
-rw-r--r--sys/arch/mvme88k/include/pmap.h5
-rw-r--r--sys/arch/powerpc/include/pmap.h4
-rw-r--r--sys/arch/sparc/include/pmap.h4
-rw-r--r--sys/arch/sun3/include/pmap.h5
-rw-r--r--sys/arch/vax/include/pmap.h3
-rw-r--r--sys/vm/pmap.h10
11 files changed, 18 insertions, 38 deletions
diff --git a/sys/arch/alpha/include/pmap.h b/sys/arch/alpha/include/pmap.h
index 524bf671006..b4b6f195189 100644
--- a/sys/arch/alpha/include/pmap.h
+++ b/sys/arch/alpha/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.8 2001/03/16 14:10:23 art Exp $ */
+/* $OpenBSD: pmap.h,v 1.9 2001/08/18 20:50:18 art Exp $ */
/* $NetBSD: pmap.h,v 1.37 2000/11/19 03:16:35 thorpej Exp $ */
/*-
@@ -214,8 +214,6 @@ void pmap_emulate_reference(struct proc *p, vaddr_t v,
#ifdef _PMAP_MAY_USE_PROM_CONSOLE
int pmap_uses_prom_console(void);
#endif
-void pmap_activate(struct proc *);
-void pmap_deactivate(struct proc *);
#define pmap_pte_pa(pte) (PG_PFNUM(*(pte)) << PGSHIFT)
#define pmap_pte_prot(pte) (*(pte) & PG_PROT)
diff --git a/sys/arch/amiga/include/pmap.h b/sys/arch/amiga/include/pmap.h
index f4eb15b8bb1..673fcd77623 100644
--- a/sys/arch/amiga/include/pmap.h
+++ b/sys/arch/amiga/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.6 2000/05/28 03:55:21 art Exp $ */
+/* $OpenBSD: pmap.h,v 1.7 2001/08/18 20:50:18 art Exp $ */
/* $NetBSD: pmap.h,v 1.17 1997/06/10 18:34:52 veego Exp $ */
/*
@@ -136,9 +136,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_ */
diff --git a/sys/arch/hp300/include/pmap.h b/sys/arch/hp300/include/pmap.h
index 5624603979d..211f6827fb2 100644
--- a/sys/arch/hp300/include/pmap.h
+++ b/sys/arch/hp300/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.7 2001/05/11 23:24:57 millert Exp $ */
+/* $OpenBSD: pmap.h,v 1.8 2001/08/18 20:50:18 art Exp $ */
/* $NetBSD: pmap.h,v 1.13 1997/06/10 18:58:19 veego Exp $ */
/*
@@ -149,10 +149,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. */
diff --git a/sys/arch/i386/include/pmap.h b/sys/arch/i386/include/pmap.h
index e456540671f..88b7db81071 100644
--- a/sys/arch/i386/include/pmap.h
+++ b/sys/arch/i386/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.16 2001/08/12 17:55:56 mickey Exp $ */
+/* $OpenBSD: pmap.h,v 1.17 2001/08/18 20:50:18 art Exp $ */
/* $NetBSD: pmap.h,v 1.44 2000/04/24 17:18:18 thorpej Exp $ */
/*
@@ -391,10 +391,8 @@ extern int pmap_pg_g; /* do we support PG_G? */
* prototypes
*/
-void pmap_activate __P((struct proc *));
void pmap_bootstrap __P((vaddr_t));
boolean_t pmap_change_attrs __P((struct vm_page *, int, int));
-void pmap_deactivate __P((struct proc *));
static void pmap_page_protect __P((struct vm_page *, vm_prot_t));
void pmap_page_remove __P((struct vm_page *));
static void pmap_protect __P((struct pmap *, vaddr_t,
diff --git a/sys/arch/mac68k/include/pmap.h b/sys/arch/mac68k/include/pmap.h
index 5b6d0ee88ea..deaeabc8ab6 100644
--- a/sys/arch/mac68k/include/pmap.h
+++ b/sys/arch/mac68k/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.9 2001/05/08 17:30:40 aaron Exp $ */
+/* $OpenBSD: pmap.h,v 1.10 2001/08/18 20:50:18 art Exp $ */
/* $NetBSD: pmap.h,v 1.26 1999/07/21 03:18:21 briggs Exp $ */
/*
@@ -189,10 +189,6 @@ extern char *vmmap; /* map for mem, dumps, etc. */
vm_offset_t pmap_map __P((vaddr_t, paddr_t, paddr_t, int));
void mac68k_set_pte __P((vm_offset_t va, vm_offset_t pge));
-struct proc;
-void pmap_activate __P((struct proc *));
-void pmap_deactivate __P((struct proc *));
-
#endif /* _KERNEL */
#endif /* _MAC68K_PMAP_H_ */
diff --git a/sys/arch/mvme88k/include/pmap.h b/sys/arch/mvme88k/include/pmap.h
index bcb036a99b3..3506158d0bb 100644
--- a/sys/arch/mvme88k/include/pmap.h
+++ b/sys/arch/mvme88k/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.15 2001/08/12 21:34:48 miod Exp $ */
+/* $OpenBSD: pmap.h,v 1.16 2001/08/18 20:50:18 art Exp $ */
/*
* Mach Operating System
* Copyright (c) 1991 Carnegie Mellon University
@@ -92,9 +92,6 @@ extern caddr_t vmmap;
/*** Prototypes for public functions defined in pmap.c ********************/
/**************************************************************************/
-void pmap_activate(struct proc *p);
-void pmap_deactivate(struct proc *p);
-
vm_offset_t pmap_map(
vm_offset_t virt,
vm_offset_t start,
diff --git a/sys/arch/powerpc/include/pmap.h b/sys/arch/powerpc/include/pmap.h
index afabbecd333..0040d215477 100644
--- a/sys/arch/powerpc/include/pmap.h
+++ b/sys/arch/powerpc/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.16 2001/07/18 19:36:57 mickey Exp $ */
+/* $OpenBSD: pmap.h,v 1.17 2001/08/18 20:50:18 art Exp $ */
/* $NetBSD: pmap.h,v 1.1 1996/09/30 16:34:29 ws Exp $ */
/*-
@@ -99,8 +99,6 @@ int ptebits(paddr_t pa, int bit);
void pmap_bootstrap __P((u_int kernelstart, u_int kernelend));
-void pmap_deactivate __P((struct proc *p));
-void pmap_activate __P((struct proc *p));
void pmap_real_memory __P((vm_offset_t *start, vm_size_t *size));
void switchexit __P((struct proc *));
diff --git a/sys/arch/sparc/include/pmap.h b/sys/arch/sparc/include/pmap.h
index 897b94ec8f4..420ec119142 100644
--- a/sys/arch/sparc/include/pmap.h
+++ b/sys/arch/sparc/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.21 2001/07/25 13:25:33 art Exp $ */
+/* $OpenBSD: pmap.h,v 1.22 2001/08/18 20:50:18 art Exp $ */
/* $NetBSD: pmap.h,v 1.30 1997/08/04 20:00:47 pk Exp $ */
/*
@@ -276,8 +276,6 @@ int pmap_dumpmmu __P((int (*)__P((dev_t, daddr_t, caddr_t, size_t)),
/* FUNCTION DECLARATIONS FOR COMMON PMAP MODULE */
struct proc;
-void pmap_activate __P((struct proc *));
-void pmap_deactivate __P((struct proc *));
void pmap_bootstrap __P((int nmmu, int nctx, int nregion));
int pmap_count_ptes __P((struct pmap *));
void pmap_prefer __P((vaddr_t, vaddr_t *));
diff --git a/sys/arch/sun3/include/pmap.h b/sys/arch/sun3/include/pmap.h
index dba933cadf5..55341d515c2 100644
--- a/sys/arch/sun3/include/pmap.h
+++ b/sys/arch/sun3/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.8 2001/05/30 20:39:59 miod Exp $ */
+/* $OpenBSD: pmap.h,v 1.9 2001/08/18 20:50:18 art Exp $ */
/* $NetBSD: pmap.h,v 1.18 1997/01/27 19:41:06 gwr Exp $ */
/*-
@@ -62,9 +62,6 @@ extern struct pmap kernel_pmap_store;
/* This is called from locore.s:cpu_switch() */
void pmap_switch __P((pmap_t pmap));
-void pmap_activate __P((struct proc *));
-void pmap_deactivate __P((struct proc *));
-
/* This lets us have some say in choosing VA locations. */
extern void pmap_prefer(vm_offset_t, vm_offset_t *);
#define PMAP_PREFER(fo, ap) pmap_prefer((fo), (ap))
diff --git a/sys/arch/vax/include/pmap.h b/sys/arch/vax/include/pmap.h
index 78c3bfac599..b4f925200c4 100644
--- a/sys/arch/vax/include/pmap.h
+++ b/sys/arch/vax/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.12 2001/08/12 12:03:03 heko Exp $ */
+/* $OpenBSD: pmap.h,v 1.13 2001/08/18 20:50:18 art Exp $ */
/* $NetBSD: pmap.h,v 1.37 1999/08/01 13:48:07 ragge Exp $ */
/*
@@ -145,7 +145,6 @@ extern struct pmap kernel_pmap_store;
void pmap_bootstrap __P((void));
vaddr_t pmap_map __P((vm_offset_t, vm_offset_t, vm_offset_t, int));
void pmap_pinit __P((pmap_t));
-void pmap_activate __P((struct proc *));
#endif /* _KERNEL */
diff --git a/sys/vm/pmap.h b/sys/vm/pmap.h
index 86412ddd24a..404830e76e0 100644
--- a/sys/vm/pmap.h
+++ b/sys/vm/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.21 2001/07/31 13:30:17 art Exp $ */
+/* $OpenBSD: pmap.h,v 1.22 2001/08/18 20:50:18 art Exp $ */
/* $NetBSD: pmap.h,v 1.36 1999/11/13 00:24:39 thorpej Exp $ */
/*
@@ -99,7 +99,13 @@ typedef struct pmap_statistics *pmap_statistics_t;
#ifdef _KERNEL
__BEGIN_DECLS
void *pmap_bootstrap_alloc __P((int));
-void pmap_unwire __P((pmap_t, vaddr_t));
+#ifndef pmap_activate
+void pmap_activate __P((struct proc *));
+#endif
+#ifndef pmap_deactivate
+void pmap_deactivate __P((struct proc *));
+#endif
+void pmap_unwire __P((pmap_t, vaddr_t));
#if !defined(pmap_clear_modify)
boolean_t pmap_clear_modify __P((struct vm_page *));