DragonFly BSD
DragonFly commits List (threaded) for 2005-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/kern init_sysent.c syscalls.c syscalls.master

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 21 Feb 2005 13:51:48 -0800 (PST)

dillon      2005/02/21 13:51:48 PST

DragonFly src repository

  Modified files:
    sys/kern             init_sysent.c syscalls.c syscalls.master 
  Implement TLS support, tls manual pages, and link the umtx and tls manual
  pages together.  TLS stands for 'thread local storage' and is used to
  support efficient userland threading and threaded data access models.
  Three TLS segments are supported in order to (eventually) support GCC3's
  __thread qualifier.  David Xu's thread library only uses one descriptor
  for now.  The system calls implement a mostly machine-independant API
  which return architecture-specific results.  Rather then pass the actual
  descriptor structure, which unnecessarily pollutes the userland
  implementation, we pass a more generic (base,size) and the system call
  returns the %gs load value for IA32.  For AMD64 and other architectures,
  the returned value will be something for those architectures.
  The current low level assembly support is not as efficient as it could be,
  but it is good enough for now.  The heavy weight switch code for processes
  does the work.  The light weight switch code for pure kernel threads has not
  been changed (since the kernel doesn't use TLS descriptors we can just ignore
  Based on work by David Xu <davidxu@xxxxxxxxxxx> and Matthew Dillon <dillon@xxxxxxxxxxxxx>
  Revision  Changes    Path
  1.26      +2 -0      src/sys/kern/init_sysent.c
  1.25      +2 -0      src/sys/kern/syscalls.c
  1.20      +3 -0      src/sys/kern/syscalls.master


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]