This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CALL_THREAD_FCT usage


On 03/31/2017 09:15 PM, Adhemerval Zanella wrote:
While implementing the C11 thread support I noted x86 is the only architecture
that actually defines CALL_THREAD_FCT.  The 32 bits version seems to define it
to explicit align the stack to 16 bytes before call the user provided symbol,
while 64 and x32 seems to just make a function call. Do we still really need
such macro for x86?

I don't think so. Stack alignment is handled in the clone implementation itself. The inline assembly seems to lack a couple of clobbers, so I'd suggest to get rid of it.

I don't think x32 requires CALL_THREAD_FCT, either.

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]