NetBSD/sys
atatat df0a9badc6 Introduce "top down" memory management for mmap()ed allocations. This
means that the dynamic linker gets mapped in at the top of available
user virtual memory (typically just below the stack), shared libraries
get mapped downwards from that point, and calls to mmap() that don't
specify a preferred address will get mapped in below those.

This means that the heap and the mmap()ed allocations will grow
towards each other, allowing one or the other to grow larger than
before.  Previously, the heap was limited to MAXDSIZ by the placement
of the dynamic linker (and the process's rlimits) and the space
available to mmap was hobbled by this reservation.

This is currently only enabled via an *option* for the i386 platform
(though other platforms are expected to follow).  Add "options
USE_TOPDOWN_VM" to your kernel config file, rerun config, and rebuild
your kernel to take advantage of this.

Note that the pmap_prefer() interface has not yet been modified to
play nicely with this, so those platforms require a bit more work
(most notably the sparc) before they can use this new memory
arrangement.

This change also introduces a VM_DEFAULT_ADDRESS() macro that picks
the appropriate default address based on the size of the allocation or
the size of the process's text segment accordingly.  Several drivers
and the SYSV SHM address assignment were changed to use this instead
of each one picking their own "default".
2003-02-20 22:16:05 +00:00
..
altq fix typo, from David Laight. 2003-01-06 15:20:24 +00:00
arch Introduce "top down" memory management for mmap()ed allocations. This 2003-02-20 22:16:05 +00:00
coda protect <sys/mallocvar.h> ifdef _KERNEL 2003-02-02 02:34:53 +00:00
compat update emul alarm syscalls to recent timer changes 2003-02-19 11:23:53 +00:00
conf Introduce "top down" memory management for mmap()ed allocations. This 2003-02-20 22:16:05 +00:00
crypto sprinkle some #ifdef __LINT__ until C9X named union member 2003-02-09 16:25:27 +00:00
ddb Add a synonym for trace - 'bt' and document it 2003-02-13 23:50:33 +00:00
dev Use MIIF_FORCEANEG. 2003-02-20 20:09:56 +00:00
fs remove SMBFS_NAME_DEBUG code, mainly because it didn't work on alignment-picky 2003-02-20 15:39:58 +00:00
gdbscripts
ipkdb
kern Introduce "top down" memory management for mmap()ed allocations. This 2003-02-20 22:16:05 +00:00
lib KNR, removing ugly 'unsigned' variables. 2003-02-01 14:57:02 +00:00
lkm Add helper awk scripts for generating trampolines for PowerPC LKMs. 2003-02-19 19:04:27 +00:00
miscfs Add code to UBCify LFS. This is still behind "#ifdef LFS_UBC" for now 2003-02-17 23:48:08 +00:00
net Add ipf packet-filtering option to if_bridge. The option is controlled at 2003-02-15 00:46:30 +00:00
netatalk allocate, not alocate. Noted by mjl, not mjll. 2003-01-28 22:26:33 +00:00
netccitt "Utilize" has exactly the same meaning as "use," but it is more 2003-02-05 00:02:24 +00:00
netinet Use callout_setfunc() and callout_schedule(). 2003-02-04 03:31:32 +00:00
netinet6 Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
netisdn
netiso deobfuscify PRU_CONNECT a bit - split isop_sfaddr and rcb_faddr pointer 2003-02-08 11:11:11 +00:00
netkey Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
netnatm
netns Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
netsmb Change a few int -> size_t to make it compile on archs where they are not 2003-02-19 12:01:37 +00:00
nfs add missing dot in comment 2003-02-18 14:37:08 +00:00
stand
sys Introduce "top down" memory management for mmap()ed allocations. This 2003-02-20 22:16:05 +00:00
ufs Tabify, and fix some comment alignment problems. 2003-02-20 04:27:23 +00:00
uvm Introduce "top down" memory management for mmap()ed allocations. This 2003-02-20 22:16:05 +00:00
Makefile