is sysdep-cancel.h needed for any linux arch?
Franz Sirl
Franz.Sirl-kernel@lauterbach.com
Sat Jan 4 05:39:00 GMT 2003
On Saturday 04 January 2003 01:01, Jakub Jelinek wrote:
> On Sat, Jan 04, 2003 at 12:55:35AM +0100, Franz Sirl wrote:
> > > The semantics outside the macro hasn't changed. PSEUDO is used exactly
> > > as before. Normally there is only the return opcode following the
> > > PSEUDO.
> >
> > Usually PSEUDO is used in some script-generated assembler stubs and I
> > couldn't find if anything special was emitted after it. On PPC "ret"
> > handles both the error and non-error syscall returns.
>
> But of course, if it is not what you want in the cancellable PSEUDO();
> ret; PSEUDO_END() sequence, you can #undef PSEUDO_RET and define it
> to something different, even to nothing in sysdep-cancel.h.
I just wanted to make sure nothing comes in-between PSEUDO(); ret;. If that's
assured, all is fine.
So, my initial version seems to work in the pthread case, but in the libc case
it crashes in __libc_enable_asynccancel while calling
(*__libc_pthread_functions.ptr_pthread_thread_self)() which is zero. As this
happens still during library init, who is responsible for initing the
__libc_pthread_functions struct with the proper values?
Franz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysdep-cancel.h
Type: text/x-chdr
Size: 3755 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20030104/b2a73190/attachment.bin>
More information about the Libc-alpha
mailing list