NetBSD/sys/arch/powerpc/include
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
..
ibm4xx Fix some white space nits. 2003-11-26 03:56:38 +00:00
oea More PPC64 changes. (latent for now). 2003-11-21 22:57:14 +00:00
altivec.h
ansi.h Define va_list as __builtin_va_list for GCC 3.x. Change stdarg macros 2003-09-24 02:39:56 +00:00
aout_machdep.h
asm.h
atomic.h
bat.h
bswap.h Reorganize the way powerpc port install machine specific headers. 2003-10-20 00:12:09 +00:00
bus.h
cdefs.h
cpu_counter.h
cpu.h Rearrange process exit path to avoid need to free resources from different 2004-01-04 11:33:29 +00:00
darwin_machdep.h Implement mach_thread_get_state. 2003-11-11 17:31:59 +00:00
db_machdep.h
elf_machdep.h
endian_machdep.h
endian.h
float.h
fpu.h
frame.h
ieee.h Use <sys/ieee754.h> where applicable. 2003-10-26 20:55:30 +00:00
ieeefp.h
instr.h Remove (the now non-compiling) support for 128bit FP emulation, which 2003-10-27 04:32:02 +00:00
int_const.h
int_fmtio.h
int_limits.h
int_mwgwtypes.h
int_types.h
ipkdb.h
isa_machdep.h Add powerpc-specific isa and isadma machdep code. (Merge common code from 2003-10-19 03:19:32 +00:00
kcore.h
limits.h
lock.h Move __cpu_simple_lock_t and __SIMPLELOCK_{UN,}LOCKED to machine/types.h 2003-09-26 22:45:41 +00:00
mach_machdep.h Move machine dependent definitions to machine dependent headers. 2003-12-03 18:25:44 +00:00
macho_machdep.h
Makefile Reorganize the way powerpc port install machine specific headers. 2003-10-20 00:12:09 +00:00
Makefile.inc
math.h
mcontext.h Add some accessor macros for the ucontext: 2003-10-08 22:43:01 +00:00
netbsd32_machdep.h
openpic.h
openpicreg.h
param.h
pcb.h
pio.h
pmap.h
pmc.h
proc.h
profile.h
psl.h
pte.h
ptrace.h
reg.h
reloc.h
setjmp.h
signal.h Define SIGTRAMP_VALID properly. 2003-09-27 00:58:32 +00:00
spr.h Add support for MPC74[45]7 2003-10-09 20:49:06 +00:00
stdarg.h Define va_list as __builtin_va_list for GCC 3.x. Change stdarg macros 2003-09-24 02:39:56 +00:00
trap.h
types.h Move __cpu_simple_lock_t and __SIMPLELOCK_{UN,}LOCKED to machine/types.h 2003-09-26 22:45:41 +00:00
userret.h Reduce code duplication by adding mi_userret() in sys/userret.h 2003-10-31 16:44:34 +00:00
varargs.h