NetBSD/sys/arch/mips
jdolecek 089abdad44 Rearrange process exit path to avoid need to free resources from different
process context ('reaper').

From within the exiting process context:
* deactivate pmap and free vmspace while we can still block
* introduce MD cpu_lwp_free() - this cleans all MD-specific context (such
  as FPU state), and is the last potentially blocking operation;
  all of cpu_wait(), and most of cpu_exit(), is now folded into cpu_lwp_free()
* process is now immediatelly marked as zombie and made available for pickup
  by parent; the remaining last lwp continues the exit as fully detached
* MI (rather than MD) code bumps uvmexp.swtch, cpu_exit() is now same
  for both 'process' and 'lwp' exit

uvm_lwp_exit() is modified to never block; the u-area memory is now
always just linked to the list of available u-areas. Introduce (blocking)
uvm_uarea_drain(), which is called to release the excessive u-area memory;
this is called by parent within wait4(), or by pagedaemon on memory shortage.
uvm_uarea_free() is now private function within uvm_glue.c.

MD process/lwp exit code now always calls lwp_exit2() immediatelly after
switching away from the exiting lwp.

g/c now unneeded routines and variables, including the reaper kernel thread
2004-01-04 11:33:29 +00:00
..
alchemy Use UART_SIZE instead of a (redefined) COM_NPORTS. 2003-12-15 09:13:41 +00:00
bonito __KERNEL_RCSID() 2003-07-15 02:43:09 +00:00
cfe __KERNEL_RCSID() 2003-07-15 02:43:09 +00:00
conf Remove preprocessor conditional MIPS3_L2CACHE_ABSENT, which was rendered 2003-12-12 14:55:58 +00:00
include Rearrange process exit path to avoid need to free resources from different 2004-01-04 11:33:29 +00:00
mips Rearrange process exit path to avoid need to free resources from different 2004-01-04 11:33:29 +00:00
sibyte Remove some assigned-to but otherwise unused variables. 2003-10-31 03:32:19 +00:00
Makefile Install the kernel linker script in /usr/lkm/ldscript so that modload(8) 2002-10-10 01:59:29 +00:00
Makefile.inc