Module Name:    src
Committed By:   tsutsui
Date:           Fri Dec 11 18:31:27 UTC 2009

Modified Files:
        src/sys/arch/sun2/include: pmap.h
        src/sys/arch/sun3/include: pmap.h

Log Message:
Export pmap_procwr() declaration only #ifdef _KERNEL.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/sun2/include/pmap.h
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/sun3/include/pmap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sun2/include/pmap.h
diff -u src/sys/arch/sun2/include/pmap.h:1.22 src/sys/arch/sun2/include/pmap.h:1.23
--- src/sys/arch/sun2/include/pmap.h:1.22	Fri Dec 11 13:56:15 2009
+++ src/sys/arch/sun2/include/pmap.h	Fri Dec 11 18:31:27 2009
@@ -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 @@
 #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 */

Index: src/sys/arch/sun3/include/pmap.h
diff -u src/sys/arch/sun3/include/pmap.h:1.31 src/sys/arch/sun3/include/pmap.h:1.32
--- src/sys/arch/sun3/include/pmap.h:1.31	Tue Dec  9 20:45:45 2008
+++ src/sys/arch/sun3/include/pmap.h	Fri Dec 11 18:31:27 2009
@@ -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 */

Reply via email to