Implementing {get,set,make,swap}context routines for ARM
Timon ter Braak
timonterbraak at gmail.com
Tue Jun 26 09:29:29 UTC 2012
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.
[1]
http://git.stlinux.com/?p=stm/uclibc.git;a=commit;h=5bc8059626bea83f157017ba6ed14faea0158089
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uClibc-0.9.33.2-arm-context-functions.patch
Type: text/x-patch
Size: 15721 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20120626/505a749d/attachment.bin>
More information about the uClibc
mailing list