Module Name: src Committed By: rin Date: Sat Jun 27 02:51:23 UTC 2020
Modified Files: src/sys/arch/powerpc/include: vmparam.h Log Message: Restrict {MIN,MAX}_PAGE_SIZE for MODULAR || _MODULE, which makes non-MODULAR kernel a little bit efficient. They are also exposed to userland for jemalloc. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 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.22 src/sys/arch/powerpc/include/vmparam.h:1.23 --- src/sys/arch/powerpc/include/vmparam.h:1.22 Fri Mar 29 12:51:15 2019 +++ src/sys/arch/powerpc/include/vmparam.h Sat Jun 27 02:51:23 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: vmparam.h,v 1.22 2019/03/29 12:51:15 christos Exp $ */ +/* $NetBSD: vmparam.h,v 1.23 2020/06/27 02:51:23 rin Exp $ */ #ifndef _POWERPC_VMPARAM_H_ #define _POWERPC_VMPARAM_H_ @@ -28,15 +28,18 @@ #define VM_DEFAULT_ADDRESS_BOTTOMUP(da, sz) \ round_page((vaddr_t)(da) + (vsize_t)maxdmap) +#if defined(MODULAR) || defined(_MODULE) || !defined(_KERNEL) /* * 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. + * This is also required for userland by jemalloc. */ #define MIN_PAGE_SHIFT 12 /* BOOKE/OEA */ #define MAX_PAGE_SHIFT 14 /* IBM4XX */ #define MIN_PAGE_SIZE (1 << MIN_PAGE_SHIFT) #define MAX_PAGE_SIZE (1 << MAX_PAGE_SHIFT) +#endif /* MODULAR || _MODULE || !_KERNEL */ #if defined(_MODULE) #if defined(_RUMPKERNEL)