Module Name:    src
Committed By:   riz
Date:           Thu May 17 18:38:54 UTC 2012

Modified Files:
        src/sys/arch/powerpc/include [netbsd-6]: vmparam.h

Log Message:
Pull up following revision(s) (requested by matt in ticket #255):
        sys/arch/powerpc/include/vmparam.h: revision 1.17
Export MIN_PAGE_SIZE and MAX_PAGE_SIZE for modular kernels.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.16.10.1 src/sys/arch/powerpc/include/vmparam.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/powerpc/include/vmparam.h
diff -u src/sys/arch/powerpc/include/vmparam.h:1.16 src/sys/arch/powerpc/include/vmparam.h:1.16.10.1
--- src/sys/arch/powerpc/include/vmparam.h:1.16	Mon Jun 20 21:45:16 2011
+++ src/sys/arch/powerpc/include/vmparam.h	Thu May 17 18:38:54 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: vmparam.h,v 1.16 2011/06/20 21:45:16 matt Exp $	*/
+/*	$NetBSD: vmparam.h,v 1.16.10.1 2012/05/17 18:38:54 riz Exp $	*/
 
 #ifndef _POWERPC_VMPARAM_H_
 #define _POWERPC_VMPARAM_H_
@@ -28,14 +28,17 @@
 #define	VM_DEFAULT_ADDRESS(da, sz) \
 	((VM_MAXUSER_ADDRESS - MAXSSIZ) - round_page(sz))
 
-#if defined(_MODULE)
+#if defined(_MODULE) || defined(MODULAR)
 /*
- * If we are a module, then we need with varible page sizes since BOOKE and OEA
- * use 4KB pages while IBM4XX use 16KB pages.
+ * If we are a module or a modular kernel, then we need to defined the range
+ * of our varible page sizes since BOOKE and OEA use 4KB pages while IBM4XX
+ * use 16KB pages.
  */
 #define	MIN_PAGE_SIZE	4096		/* BOOKE/OEA */
 #define	MAX_PAGE_SIZE	16384		/* IBM4XX */
+#endif
 
+#if defined(_MODULE)
 #if defined(_RUMPKERNEL)
 /*
  * Safe definitions for RUMP kernels

Reply via email to