cvs commit: src/sys/i386/i386 machdep.c pmap.c src/sys/kern kern_fork.c src/sys/sys proc.h thread.h

Simon Schubert corecode at
Wed Oct 5 14:55:52 PDT 2005

corecode    2005/10/05 14:53:41 PDT

DragonFly src repository

  Modified files:
    sys/i386/i386        machdep.c pmap.c 
    sys/kern             kern_fork.c 
    sys/sys              proc.h thread.h 
  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
  Revision  Changes    Path
  1.78      +1 -0      src/sys/i386/i386/machdep.c
  1.49      +1 -0      src/sys/i386/i386/pmap.c
  1.37      +14 -1     src/sys/kern/kern_fork.c
  1.62      +92 -27    src/sys/sys/proc.h
  1.68      +2 -0      src/sys/sys/thread.h

More information about the Commits mailing list