diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-12-15 17:24:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-12-15 17:24:08 +0000 |
commit | 557131fcec0583e3d18ad8862c0cf3eea3500428 (patch) | |
tree | 23f93df50579bad659d19530a6730df9c73872f9 /sys/arch/sh/include | |
parent | d1ee5eeaf97b7bf7cbcfc98b9cdecffc12bdca64 (diff) |
Remove a lot of symbols from the namespace, otherwise sys/sysctl.h and
rpc/pmap_prot.h collide.. "struct pmap" from the kernel should not make
it out to userland.
ok miod
Diffstat (limited to 'sys/arch/sh/include')
-rw-r--r-- | sys/arch/sh/include/pmap.h | 6 |
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_ */ |