Implementing {get,set,make,swap}context routines for ARM
Mike Frysinger
vapier at gentoo.org
Sat Aug 18 23:51:08 UTC 2012
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
-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/20120818/b4164589/attachment.asc>
More information about the uClibc
mailing list