Subject: CVS commit: syssrc/sys/arch/vax
To: None <source-changes@netbsd.org>
From: Anders Magnusson <ragge@netbsd.org>
List: source-changes
Date: 03/11/2002 00:32:32
Module Name:	syssrc
Committed By:	ragge
Date:		Sun Mar 10 22:32:32 UTC 2002

Modified Files:
	syssrc/sys/arch/vax/include: cpu.h pmap.h
	syssrc/sys/arch/vax/vax: pmap.c trap.c vm_machdep.c

Log Message:
Major update of the vax pmap:
	- Reinstall the "dynamic page table length" that was removed some
	  years ago.
	- Limit the user page table submap to max 5% of available memory.
	- Free the page table space when a process is swapped out.
	- If the UPT submap runs out of space, throw away pmap mappings
	  using the same algorithm as for swapping processes.

As a result of this, 4MB machines are useable again and it's even possible
to compile a kernel for 2MB machines (but it will be slow... :-)

Still to do:
	- Multiprocessor fixes.
	- More profiling.


To generate a diff of this commit:
cvs rdiff -r1.61 -r1.62 syssrc/sys/arch/vax/include/cpu.h
cvs rdiff -r1.51 -r1.52 syssrc/sys/arch/vax/include/pmap.h
cvs rdiff -r1.109 -r1.110 syssrc/sys/arch/vax/vax/pmap.c
cvs rdiff -r1.67 -r1.68 syssrc/sys/arch/vax/vax/trap.c
cvs rdiff -r1.76 -r1.77 syssrc/sys/arch/vax/vax/vm_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.