Module Name:    src
Committed By:   tsutsui
Date:           Fri Dec 11 18:40:08 UTC 2009

Modified Files:
        src/sys/arch/sun3/include: pmap3.h pmap3x.h

Log Message:
Export NBSG for bootloaders. MMU is enabled even on PROM on sun68k machines.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/sun3/include/pmap3.h
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/sun3/include/pmap3x.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/sun3/include/pmap3.h
diff -u src/sys/arch/sun3/include/pmap3.h:1.46 src/sys/arch/sun3/include/pmap3.h:1.47
--- src/sys/arch/sun3/include/pmap3.h:1.46	Fri Dec 11 13:52:57 2009
+++ src/sys/arch/sun3/include/pmap3.h	Fri Dec 11 18:40:08 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap3.h,v 1.46 2009/12/11 13:52:57 tsutsui Exp $	*/
+/*	$NetBSD: pmap3.h,v 1.47 2009/12/11 18:40:08 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -95,6 +95,8 @@
 #define	PMAP_NC		0x10	/* tells pmap_enter to set PG_NC */
 #define	PMAP_SPEC	0x1C	/* mask to get all above. */
 
+#endif	/* _KERNEL */
+
 /* MMU specific segment size */
 #define	SEGSHIFT	17	        /* LOG2(NBSG) */
 #define	NBSG		(1 << SEGSHIFT)	/* bytes/segment */
@@ -103,5 +105,3 @@
 #define	sun3_round_seg(x)	((((vaddr_t)(x)) + SEGOFSET) & ~SEGOFSET)
 #define	sun3_trunc_seg(x)	((vaddr_t)(x) & ~SEGOFSET)
 #define	sun3_seg_offset(x)	((vaddr_t)(x) & SEGOFSET)
-
-#endif	/* _KERNEL */

Index: src/sys/arch/sun3/include/pmap3x.h
diff -u src/sys/arch/sun3/include/pmap3x.h:1.27 src/sys/arch/sun3/include/pmap3x.h:1.28
--- src/sys/arch/sun3/include/pmap3x.h:1.27	Fri Dec 11 13:52:57 2009
+++ src/sys/arch/sun3/include/pmap3x.h	Fri Dec 11 18:40:08 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap3x.h,v 1.27 2009/12/11 13:52:57 tsutsui Exp $	*/
+/*	$NetBSD: pmap3x.h,v 1.28 2009/12/11 18:40:08 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -79,6 +79,8 @@
 #define	PMAP_VME32	0x20	/* etc. */
 #define	PMAP_NC		0x40	/* tells pmap_enter to set PTE_CI */
 #define	PMAP_SPEC	0xFF	/* mask to get all above. */
+ 
+#endif	/* _KERNEL */
 
 /* MMU specific segment size */
 #define	SEGSHIFT	19	        /* LOG2(NBSG) */
@@ -88,5 +90,3 @@
 #define	sun3x_round_seg(x)	((((vaddr_t)(x)) + SEGOFSET) & ~SEGOFSET)
 #define	sun3x_trunc_seg(x)	((vaddr_t)(x) & ~SEGOFSET)
 #define	sun3x_seg_offset(x)	((vaddr_t)(x) & SEGOFSET)
- 
-#endif	/* _KERNEL */

Reply via email to