Module Name:    src
Committed By:   matt
Date:           Thu Feb 23 20:33:30 UTC 2012

Modified Files:
        src/sys/arch/powerpc/include: vmparam.h

Log Message:
Export MIN_PAGE_SIZE and MAX_PAGE_SIZE for modular kernels.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 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.17
--- src/sys/arch/powerpc/include/vmparam.h:1.16	Mon Jun 20 21:45:16 2011
+++ src/sys/arch/powerpc/include/vmparam.h	Thu Feb 23 20:33:29 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: vmparam.h,v 1.16 2011/06/20 21:45:16 matt Exp $	*/
+/*	$NetBSD: vmparam.h,v 1.17 2012/02/23 20:33:29 matt 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