Export pmap_procwr() declaration only #ifdef _KERNEL.

This commit is contained in:
tsutsui 2009-12-11 18:31:27 +00:00
parent 1401e77eb0
commit 8c1c2fcdd0
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.22 2009/12/11 13:56:15 tsutsui Exp $ */
/* $NetBSD: pmap.h,v 1.23 2009/12/11 18:31:27 tsutsui Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -100,10 +100,10 @@ pmap_remove_all(struct pmap *pmap)
#define PMAP_NC 0x00 /* tells pmap_enter to set PG_NC */
#define PMAP_SPEC 0x0C /* mask to get all above. */
#endif /* _KERNEL */
void pmap_procwr(struct proc *, vaddr_t, size_t);
#endif /* _KERNEL */
/* MMU specific segment value */
#define SEGSHIFT 15 /* LOG2(NBSG) */
#define NBSG (1 << SEGSHIFT) /* bytes/segment */

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.31 2008/12/09 20:45:45 pooka Exp $ */
/* $NetBSD: pmap.h,v 1.32 2009/12/11 18:31:27 tsutsui Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -36,6 +36,8 @@
#include <machine/pmap3x.h>
#endif /* SUN3X */
#ifdef _KERNEL
void pmap_procwr(struct proc *, vaddr_t, size_t);
#endif
#endif /* _MACHINE_PMAP_H */