Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/include Export MIN_PAGE_SIZE and MAX_PAGE_S...



details:   https://anonhg.NetBSD.org/src/rev/aebdc665e042
branches:  trunk
changeset: 777572:aebdc665e042
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Feb 23 20:33:29 2012 +0000

description:
Export MIN_PAGE_SIZE and MAX_PAGE_SIZE for modular kernels.

diffstat:

 sys/arch/powerpc/include/vmparam.h |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r d1beec03719f -r aebdc665e042 sys/arch/powerpc/include/vmparam.h
--- a/sys/arch/powerpc/include/vmparam.h        Thu Feb 23 19:17:32 2012 +0000
+++ b/sys/arch/powerpc/include/vmparam.h        Thu Feb 23 20:33:29 2012 +0000
@@ -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



Home | Main Index | Thread Index | Old Index