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 crater.dragonflybsd.org
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 
  Log:
  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


http://www.dragonflybsd.org/cvsweb/src/sys/i386/i386/machdep.c.diff?r1=1.77&r2=1.78&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/i386/i386/pmap.c.diff?r1=1.48&r2=1.49&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_fork.c.diff?r1=1.36&r2=1.37&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/proc.h.diff?r1=1.61&r2=1.62&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/thread.h.diff?r1=1.67&r2=1.68&f=u





More information about the Commits mailing list