tech-kern archive

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

Re: [PATCH] swapcontext vs libpthread, round 9



Joerg Sonnenberger <joerg%britannica.bec.de@localhost> wrote:

> 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.

For now all ports implement swapcontext() by doing a system call. My
patch fixes a bug while keeping the system call based implementation.

Further work could make swapcontext() purely userland on ports where it
is possible. I think the patch I propose do not prevent doing so. It
even makes it easier since it introduces a libc stub for setcontext(),
which can be overriden. 

If we cannot settle on that, we need to core to make a decision.

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index