Re: Implementing {get,set,make,swap}context routines for ARM
On 19/08/2012 1.51, 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 -mike I have also a patch set for SH4 since time (never upstreamed). I will consider to rebase and post a patch. I do need to use UCLIBC_SUSV3_LEGACY as Mike suggested. carmelo ___ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc ___ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc
Re: Implementing {get,set,make,swap}context routines for ARM
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 signature.asc Description: This is a digitally signed message part. ___ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc
Re: Implementing {get,set,make,swap}context routines for ARM
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 signature.asc Description: This is a digitally signed message part. ___ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc