tech-kern archive

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

Re: [RFC][PATCH] _UC_TLSBASE for all ports

Joerg Sonnenberger <> wrote:

> > Therefore I do not understand why you oppose the proposal of proposing a
> > MI interface to let the user opt out of that bad behavior.
> Your "fix" doesn't change this issue at all.

Of course it does. 

For now if you want to swapcontext() between threads, you can do that
before calling swapcontext() on amd64, arm, hppa, i386, m68k and vax:
        ctx.uc_flags &= _UC_TLSBASE 

The result is that the pthread private pointer will be left untouched,
presserving pthread sanity. You cannot do that on sh3, sparc, sparc64
and powerpc, and this is what I propose to address. 

Emmanuel Dreyfus

Home | Main Index | Thread Index | Old Index