summaryrefslogtreecommitdiff
path: root/sys/arch/sh/include/pmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sh/include/pmap.h')
-rw-r--r--sys/arch/sh/include/pmap.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sh/include/pmap.h b/sys/arch/sh/include/pmap.h
index 8abdbfe1d25..44bb8fec842 100644
--- a/sys/arch/sh/include/pmap.h
+++ b/sys/arch/sh/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.3 2007/09/10 18:49:45 miod Exp $ */
+/* $OpenBSD: pmap.h,v 1.4 2007/12/15 17:24:06 deraadt Exp $ */
/* $NetBSD: pmap.h,v 1.28 2006/04/10 23:12:11 uwe Exp $ */
/*-
@@ -49,6 +49,8 @@
#include <sys/queue.h>
#include <sh/pte.h>
+#ifdef _KERNEL
+
#define PMAP_STEAL_MEMORY
#define PMAP_GROWKERNEL
@@ -98,4 +100,6 @@ void pmap_prefer(vaddr_t, vaddr_t *);
pt_entry_t *__pmap_pte_lookup(pmap_t, vaddr_t);
pt_entry_t *__pmap_kpte_lookup(vaddr_t);
boolean_t __pmap_pte_load(pmap_t, vaddr_t, int);
+
+#endif /* !_KERNEL */
#endif /* !_SH_PMAP_H_ */