Implementing {get,set,make,swap}context routines for ARM
Mike Frysinger
vapier at gentoo.org
Tue Aug 21 03:24:39 UTC 2012
On Monday 20 August 2012 08:34:24 Natanael Copa wrote:
> On Sun, Aug 19, 2012 at 1:51 AM, Mike Frysinger wrote:
> > On Tuesday 26 June 2012 05:29:29 Timon ter Braak wrote:
> >> I am trying to build a gccgo (go language) cross compiler targetting an
> >> ARM system. Go uses the context control routines for coorperative
> >> multithreading. uClibc however does not implement them, so I am trying
> >> to port the functions to uClibc.
> >>
> >> The routines are available in glibc and eglibc, and for other
> >> architectures [1]. My port builds correctly, but segfaults while
> >> running.
> >>
> >> I noticed that (for example) the getcontext routine is quite different
> >> from the setjmp routine shipped with uClibc. Can anybody give me some
> >> pointers in what should be altered?
> >>
> >> A patch of my attempt is attached.
> >
> > you'll need to make them depend on UCLIBC_SUSV3_LEGACY as these functions
> > have been removed from the latest POSIX spec and shouldn't be
> > enabled/built by default
>
> I'd like to have this too for mongrel2 but I would actually prefer to
> see this implemented as a standalone library, similar to
> argp-standalone.
the difference between these and argp is the former is part of the standard
(albeit, the last one which we still currently support) while the latter is
purely a GNU extension.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120820/029fcef3/attachment.asc>
More information about the uClibc
mailing list