Reinoud Zandijk <rein...@netbsd.org> wrote: > i'm not sure if i read the patch correctly, but i'd really would like to see > the setcontext()/swapcontext() to not use a system call. I
Well I do not know if the setcontext() system call is mandatory in swapcontext(), or if we can do that same thing in usermode, but the patch does not change the situation. We currently use a system call, and the patch just rework the system call to add a libc stub that libpthread can override. Note however that the introduced libc stub helps you experimenting swapcontext without system call: you can override the setcontext stub by your own full-usermode code. -- Emmanuel Dreyfus http://hcpnet.free.fr/pubz m...@netbsd.org