tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] swapcontext vs libpthread, round 9
On Thu, Sep 06, 2012 at 03:26:13AM +0000, YAMAMOTO Takashi wrote:
> hi,
>
> > On Fri, Aug 31, 2012 at 04:45:48PM +0000, Emmanuel Dreyfus wrote:
> >> After a few round behind the scenes with portmasters (Hi Nick, hi Martin!),
> >> here is the latest incarnation of swpacontext vs libpthread patch.
> >>
> >> If there are no concerns left, I plan to commit within 2 days.
> >
> > I still object to adding _UC_TLSBASE to ports that don't need it. This
> > can be done entire in userland, so no kernel change should be required
> > or done.
> >
> > Joerg
>
> can you elaborate a bit more?
>
> implement the entire setcontext in userland where possible?
>
> or something like the following?
>
> setcontext(ucp)
> {
> #ifdef(__i386__)
> ucp->uc_mcontext._mc_tlsbase = __lwp_getprivate_fast();
> #else
> ...
> #endif
> return sys_setcontext(ucp);
> }
The latter, essentially.
Joerg
Home |
Main Index |
Thread Index |
Old Index