| #
2a84159a |
| 06-Jan-2023 |
tsutsui <tsutsui@NetBSD.org> |
TAB/spaces/indents cleanup.
|
| #
fc9073f9 |
| 01-Feb-2020 |
tsutsui <tsutsui@NetBSD.org> |
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 (40
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 <uvm/uvm_param.h> 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 <m68k/vmparam.h> 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.
show more ...
|
| #
2688b459 |
| 27-Mar-2019 |
christos <christos@NetBSD.org> |
- expose vmparams to userland on arm, like other archs do. - remove unneeded includes
|
| #
70a63888 |
| 26-Feb-2018 |
tsutsui <tsutsui@NetBSD.org> |
Add dumb memory probe routines for Milan to use all available memory.
Tested on Milan with 32Mx1, 32Mx4, 128MBx1, and 128MBx3. (bootloader ROM fails to load TOS with 128MBx4)
No particular comment
Add dumb memory probe routines for Milan to use all available memory.
Tested on Milan with 32Mx1, 32Mx4, 128MBx1, and 128MBx3. (bootloader ROM fails to load TOS with 128MBx4)
No particular comment on port-atari@: http://mail-index.netbsd.org/port-atari/2018/02/09/msg000580.html
show more ...
|
| #
9e3d987a |
| 02-Feb-2017 |
rin <rin@NetBSD.org> |
PR port-mac68k/51923 Bump default MAXTSIZ to 32MB for m68k ports, which allos us to use GCC 5.4 on GENERIC kernels. Ok jklos
|
| #
6eadace4 |
| 02-Feb-2017 |
rin <rin@NetBSD.org> |
PR port-mac68k/51923 Remove unused SYSPTSIZE and USRPTSIZE from m68k ports. Ok jklos
|
| #
498146de |
| 26-Jul-2014 |
tsutsui <tsutsui@NetBSD.org> |
Reorganize and bump VM related constants.
- sync VM_MAXUSER_ADDRESS and VM_MAX_ADDRESS with other hp300 derived ports and use same definitions for USRSTACK as other m68k ports (no worth to have
Reorganize and bump VM related constants.
- sync VM_MAXUSER_ADDRESS and VM_MAX_ADDRESS with other hp300 derived ports and use same definitions for USRSTACK as other m68k ports (no worth to have sun3/sunos compat in these days) - remove unused KUSER_AREA - bump MAXTSIZ, MAXDSIZ, and MAXSSIZ
These changes allow my 64MB TT030 build pkgsrc/textproc/icu which seems to require >200MB VA space. (note our current 040/060 pmap implementation can't handle >224MB VA size)
show more ...
|
| #
9b6bd2d9 |
| 08-Feb-2011 |
rmind <rmind@NetBSD.org> |
Remove clause 3 (UCB advertising clause) from the University of Utah copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks! Also, merge UCB and Utah copyright texts back into one, as the
Remove clause 3 (UCB advertising clause) from the University of Utah copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks! Also, merge UCB and Utah copyright texts back into one, as they originally were.
Extra verification by snj@.
show more ...
|
| #
41e5df6d |
| 06-Nov-2010 |
uebayasi <uebayasi@NetBSD.org> |
Remove incomplete, never worked dynamic run-time memory registration (uvm_page_physload(9)). This functionality will be re-added later.
|
| #
7a77e181 |
| 08-Dec-2009 |
tsutsui <tsutsui@NetBSD.org> |
Use PGSHIFT from <machine/param.h> for PAGE_SHIFT. We can assume PGSHIFT is always constant on current m68k pmap_motorola implementation. Also fix some leftover HP300 comments on some ports.
|
| #
b5fd5d57 |
| 26-Aug-2009 |
thorpej <thorpej@NetBSD.org> |
Minor tweak to the pv_table management in the Hibler-derived m68k pmaps: The head of the list is now a pv_header, which contains the first pv_entry as well as a 16-bit attributes field (replaces the
Minor tweak to the pv_table management in the Hibler-derived m68k pmaps: The head of the list is now a pv_header, which contains the first pv_entry as well as a 16-bit attributes field (replaces the pmap_attributes array plus the pv_entry::pv_flags field) as a 16-bit count of caller-specified cache-inhibited mappings.
Tested on hp300 (shared pmap_motorola.c), changes to atari and amiga copies are purely mechanical.
show more ...
|
| #
072d8cc4 |
| 13-Mar-2009 |
abs <abs@NetBSD.org> |
Use separate free lists for TT and ST ram, and give TT a lower id so all TT ram will be used before any ST ram. (free_list param to uvm_page_physload()) Tested on a TT with and without TT ram.
|
| #
f5b0fec0 |
| 06-Mar-2009 |
joerg <joerg@NetBSD.org> |
Remove SHMMAXPGS from all kernel configs. Dynamically compute the initial limit as 1/4 of the physical memory. Ensure the limit is at least 1024 pages, the old default on most platforms.
|
| #
8e2bef01 |
| 01-Jan-2009 |
tsutsui <tsutsui@NetBSD.org> |
Pull the following amiga's pmap changes to atari: arch/amiga/amiga/amiga_init.c 1.95-1.97, 1.100-1.102 arch/amiga/amiga/pmap.c 1.123, 1.126-1.131, 1.142, 1.145 arch/amiga/amiga/pmap_bootstrap.c 1.
Pull the following amiga's pmap changes to atari: arch/amiga/amiga/amiga_init.c 1.95-1.97, 1.100-1.102 arch/amiga/amiga/pmap.c 1.123, 1.126-1.131, 1.142, 1.145 arch/amiga/amiga/pmap_bootstrap.c 1.1, 1.2, 1.3, 1.4 arch/amiga/conf/files.amiga 1.137 arch/amiga/include/pcb.h 1.16 arch/amiga/include/pmap.h 1.44 arch/amiga/include/pte.h 1.19 arch/amiga/include/vmparam.h 1.35
- change kernel address space layout (i.e. move Sysmap to the end of KVA) to match other m68k ports, which should be done on yamt-km merge - rework pmap_zero_page(), pmap_copy_page() and some more other functions to make them compatible with m68k/pmap_motorola.c - move pmap_bootstrap() into a separate file to allow using either the atari pmap.c or the m68k common pmap_motorola.c - use common m68k include files, pcb.h, pmap_motorola.h, and pte_motorola.h - misc style and cosmetic changes
Most merge work is done by Tuomo Makinen, and miscellaneous fixes and cleanups are done by me.
Tested on Falcon with both 68030 and 68060 by Tuomo, and also tested on TT030 by David Ross on port-atari.
Should be pulled up to netbsd-4 (it requires at least Sysmap changes) and netbsd-5.
show more ...
|
| #
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|
| #
aad01611 |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
| #
cc2c493b |
| 02-Apr-2003 |
thorpej <thorpej@NetBSD.org> |
Use PAGE_SIZE rather than NBPG.
|
| #
78ea2dd3 |
| 10-Dec-2002 |
thorpej <thorpej@NetBSD.org> |
Use __LDPGSZ (which must be == USRTEXT) as the text address for a.out executables, and eliminate the USRTEXT constant, which was only used by the a.out exec code.
|
| #
662f8775 |
| 15-Nov-2001 |
soren <soren@NetBSD.org> |
MAXSLP is defined to be a machine-independent scheduling parameter, so move it into sys/param.h.
|
| #
cf67ac71 |
| 01-May-2001 |
thorpej <thorpej@NetBSD.org> |
Per discussion w/ chuck and chuck, restructure the md page stuff to use a structure called "vm_page_md", and use __HAVE_VM_PAGE_MD and __HAVE_PMAP_PHYSSEG.
|
| #
2b27ac7a |
| 29-Apr-2001 |
thorpej <thorpej@NetBSD.org> |
Add a VM_MDPAGE_MEMBERS macro that defines pmap-specific data for each vm_page structure. Add a VM_MDPAGE_INIT() macro to init this data when pages are initialized by UVM. These macros are mandator
Add a VM_MDPAGE_MEMBERS macro that defines pmap-specific data for each vm_page structure. Add a VM_MDPAGE_INIT() macro to init this data when pages are initialized by UVM. These macros are mandatory, but ports may #define them to nothing if they are not needed/used.
This deprecates struct pmap_physseg. As a transitional measure, allow a port to #define PMAP_PHYSSEG so that it can continue to use it until its pmap is converted to use VM_MDPAGE_MEMBERS.
Use all this stuff to eliminate a lot of extra work in the Alpha pmap module (it's smaller and faster now). Changes to other pmap modules will follow.
show more ...
|
| #
e6da7eeb |
| 14-Nov-2000 |
thorpej <thorpej@NetBSD.org> |
We use 8K pages on the Atari. Make PAGE_SIZE and friends into compile-time constants.
|
| #
dded044f |
| 11-Feb-2000 |
thorpej <thorpej@NetBSD.org> |
Update for the NKMEMPAGES changes.
|
| #
b0fbaa33 |
| 26-Jan-2000 |
tsutsui <tsutsui@NetBSD.org> |
Remove obsoleted macros.
|
| #
05132683 |
| 04-Dec-1999 |
ragge <ragge@NetBSD.org> |
CL* discarding.
|