Userland 1:1 threading changes step 1/4+:
authorSimon Schubert <corecode@dragonflybsd.org>
Wed, 5 Oct 2005 21:53:41 +0000 (21:53 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Wed, 5 Oct 2005 21:53:41 +0000 (21:53 +0000)
commitef09c3edd267cfe781068c6c730e6cbf5d8a0f1e
tree08d04feb3d14c2dce7aadbfa05845538dc332e0c
parentce2e61314f554418a78be05f82d41047227ec776
Userland 1:1 threading changes step 1/4+:

o Move thread-local members from struct proc into new struct lwp.

o Add a LIST_HEAD(lwp) p_lwps to struct proc.  This links a proc
  with its lwps.

o Add a td_lwp member to struct thread which links a thread to its lwp,
  if it exists.  This won't replace td_proc completely to save indirections.

o For now embed one struct lwp into struct proc and set up preprocessor
  linkage so that semantics don't change for the rest of the kernel.
  Once all consumers are converted to take a struct lwp instead of a struct
  proc, this will go away.

Reviewed-by: dillon, davidxu
sys/i386/i386/machdep.c
sys/i386/i386/pmap.c
sys/kern/kern_fork.c
sys/platform/pc32/i386/machdep.c
sys/platform/pc32/i386/pmap.c
sys/sys/proc.h
sys/sys/thread.h