Implementing TLS: step 1
Daniel Eischen
eischen at vigrid.com
Thu Jun 19 21:02:39 PDT 2003
On Thu, 19 Jun 2003, Marcel Moolenaar wrote:
> On Thu, Jun 19, 2003 at 11:39:42PM -0400, Daniel Eischen wrote:
> >
> > > Q2: Given that libthr has been ported to ia64, what needs to be done
> > > to port libkse to ia64 (roughtly)?
> >
> > libpthread/arch/i386/include/ksd.h:
> > libpthread/arch/i386/include/atomic_ops.h
> > libpthread/arch/i386/include/pthread_md.h
> > libpthread/arch/i386/i386:
>
> No kernel code? Hmmm, looks like something that's worth giving a
> shot. If we have libkse on ia64, we can more easily work on the
> issues related to TLS...
I forgot. You also need signalcontext() in libc/<arch>/gen/.
All it does is add a signal frame to an existing ucontext.
(It lets the UTS munge a ucontext to add a signal handler
on top of it.) I assume you already have makecontext().
--
Dan Eischen
More information about the freebsd-threads
mailing list