--- - branch: MAIN date: Sat Feb 1 19:41:50 UTC 2020 files: - new: '1.63' old: '1.62' path: src/distrib/sets/lists/comp/ad.m68k pathrev: src/distrib/sets/lists/comp/ad.m68k@1.63 type: modified - new: '1.48' old: '1.47' path: src/sys/arch/amiga/include/vmparam.h pathrev: src/sys/arch/amiga/include/vmparam.h@1.48 type: modified - new: '1.34' old: '1.33' path: src/sys/arch/atari/include/vmparam.h pathrev: src/sys/arch/atari/include/vmparam.h@1.34 type: modified - new: '1.19' old: '1.18' path: src/sys/arch/cesfic/include/vmparam.h pathrev: src/sys/arch/cesfic/include/vmparam.h@1.19 type: modified - new: '1.41' old: '1.40' path: src/sys/arch/hp300/include/vmparam.h pathrev: src/sys/arch/hp300/include/vmparam.h@1.41 type: modified - new: '1.23' old: '1.22' path: src/sys/arch/luna68k/include/vmparam.h pathrev: src/sys/arch/luna68k/include/vmparam.h@1.23 type: modified - new: '1.32' old: '1.31' path: src/sys/arch/m68k/include/Makefile pathrev: src/sys/arch/m68k/include/Makefile@1.32 type: modified - new: '1.1' old: '0' path: src/sys/arch/m68k/include/vmparam.h pathrev: src/sys/arch/m68k/include/vmparam.h@1.1 type: added - new: '1.46' old: '1.45' path: src/sys/arch/mac68k/include/vmparam.h pathrev: src/sys/arch/mac68k/include/vmparam.h@1.46 type: modified - new: '1.38' old: '1.37' path: src/sys/arch/mvme68k/include/vmparam.h pathrev: src/sys/arch/mvme68k/include/vmparam.h@1.38 type: modified - new: '1.23' old: '1.22' path: src/sys/arch/news68k/include/vmparam.h pathrev: src/sys/arch/news68k/include/vmparam.h@1.23 type: modified - new: '1.27' old: '1.26' path: src/sys/arch/next68k/include/vmparam.h pathrev: src/sys/arch/next68k/include/vmparam.h@1.27 type: modified - new: '1.38' old: '1.37' path: src/sys/arch/sun3/include/vmparam.h pathrev: src/sys/arch/sun3/include/vmparam.h@1.38 type: modified - new: '1.40' old: '1.39' path: src/sys/arch/x68k/include/vmparam.h pathrev: src/sys/arch/x68k/include/vmparam.h@1.40 type: modified id: 20200201T194150Z.42a635c547e24791b21e55b2f67d73680c5297b8 log: | Add MAX/MIN PAGE_SIZE and PAGE_SHIFT definitions of m68k for jemalloc(3). Background: - All m68k ports have fixed PAGE_SIZE value in their kernels, but each port uses different PAGE_SIZE value (4096 or 8192) due to historical reasons. - Currently module(7) binaries are built per each port so all m68k kernel sources don't support run-time variable PAGE_SIZE. - MI assumes that the port supports a variable PAGE_SIZE on module(7) builds if both MAX_PAGE_SIZE and MIN_PAGE_SIZE are defined and they have different values. - On the other hand, jemalloc(3) checks MAX_PAGE_SHIFT in src/external/bsd/jemalloc/include/jemalloc/internal/jemalloc_internal_defs.h for internal optimization. - m68k ports share userland binaries (especially pkgsrc binaries) among all ports, so we need to define MAX_PAGE_SHIFT as 13 to support m68k ports where PAGE_SIZE==8192. (though this would affect only if static binaries built on 4k page hosts are executed on 8k page hosts) To solve these inconsistency on PAGE_SIZE definitions, we should have an independent PAGE_SIZE related definitions for userland, but it requires major reorganization. For now (especially for netbsd-9) we define MAX/MIN PAGE_SIZE and PAGE_SHIFT values in only in !defined(_KERNEL) case. Discussed on source-changes-d@ and tech-kern@ with christos@ and thorpej@: https://mail-index.netbsd.org/source-changes-d/2020/01/thread1.html#012035 https://mail-index.netbsd.org/tech-kern/2020/01/thread1.html#025954 Should be pulled up to netbsd-9. module: src subject: 'CVS commit: src' unixtime: '1580586110' user: tsutsui