tech-kern archive

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

Re: [PATCH] swapcontext vs libpthread

On Fri, Aug 24, 2012 at 11:26:24PM -0400, Christos Zoulas wrote:
> In lib/libc/sys/, move setcontext.S from the ASM section to the
> WEAKASM section. This will define for you a _sys_setcontext() to use directly.

Right, this is the easy part. If you run this you see the hard part:
grep -r setcontect src/lib/libc/arch

We have many setcontext system calls in assembly that need to be turned
into calls to _C_LABEL(setcontext).

Emmanuel Dreyfus

Home | Main Index | Thread Index | Old Index