summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-05-29 21:50:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-05-29 21:50:10 +0000
commite3a487165a0d80a68b2b68a7c2309e7f520e6270 (patch)
tree1ecbf4691359f93f9b91bb014f8de5b15f9a214f
parent521892b65aaf7f2920dc758a94b94087f9659dd9 (diff)
clean userland namespace a bit more; ok miod
-rw-r--r--sys/arch/mips64/include/pmap.h5
-rw-r--r--sys/arch/powerpc/include/pmap.h5
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/arch/mips64/include/pmap.h b/sys/arch/mips64/include/pmap.h
index 9b8d2aeb983..4e57b1acf2c 100644
--- a/sys/arch/mips64/include/pmap.h
+++ b/sys/arch/mips64/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.8 2005/11/23 11:22:10 mickey Exp $ */
+/* $OpenBSD: pmap.h,v 1.9 2006/05/29 21:50:08 deraadt Exp $ */
/*
* Copyright (c) 1987 Carnegie-Mellon University
@@ -38,6 +38,8 @@
#ifndef _MIPS_PMAP_H_
#define _MIPS_PMAP_H_
+#ifdef _KERNEL
+
/*
* The user address space is 2Gb (0x0 - 0x80000000).
* User programs are laid out in memory as follows:
@@ -84,7 +86,6 @@ typedef struct pmap {
struct segtab *pm_segtab; /* pointers to pages of PTEs */
} *pmap_t;
-#ifdef _KERNEL
/* flags for pv_entry */
#define PV_UNCACHED 0x0001 /* Page is mapped unchached */
diff --git a/sys/arch/powerpc/include/pmap.h b/sys/arch/powerpc/include/pmap.h
index 67e3c3967ae..ecfe25ce60f 100644
--- a/sys/arch/powerpc/include/pmap.h
+++ b/sys/arch/powerpc/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.41 2005/12/17 07:31:26 miod Exp $ */
+/* $OpenBSD: pmap.h,v 1.42 2006/05/29 21:50:09 deraadt Exp $ */
/* $NetBSD: pmap.h,v 1.1 1996/09/30 16:34:29 ws Exp $ */
/*-
@@ -81,6 +81,8 @@ void pmap_kremove_pg(vaddr_t va);
#define PMAP_CACHE_WT 2 /* writethru */
#define PMAP_CACHE_WB 3 /* writeback */
+#ifdef _KERNEL
+
/*
* Pmap stuff
*/
@@ -94,7 +96,6 @@ struct pmap {
typedef struct pmap *pmap_t;
-#ifdef _KERNEL
extern struct pmap kernel_pmap_;
#define pmap_kernel() (&kernel_pmap_)
boolean_t pteclrbits(paddr_t pa, u_int mask, u_int clear);